0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

org: Small simplification

This commit is contained in:
Marco Wahl 2022-02-04 11:49:15 +01:00
parent e7ea951ac9
commit 1f78ca45f8

View file

@ -13601,9 +13601,8 @@ drawer is immediately hidden."
(org-with-limited-levels (org-back-to-heading-or-point-min t)))
(if (org-before-first-heading-p)
(while (and (org-at-comment-p) (bolp)) (forward-line))
(progn
(forward-line)
(when (looking-at-p org-planning-line-re) (forward-line))))
(forward-line)
(when (looking-at-p org-planning-line-re) (forward-line)))
(unless (looking-at-p org-property-drawer-re)
;; Make sure we start editing a line from current entry, not from
;; next one. It prevents extending text properties or overlays