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

Merge branch 'maint'

This commit is contained in:
Bastien 2021-05-02 08:50:18 +02:00
commit c67413a7b6

View file

@ -20964,7 +20964,11 @@ See `org-backward-paragraph'."
(cond
;; There is a blank line above. Move there.
((and (org-previous-line-empty-p)
(not (org-invisible-p (1- (line-end-position 0)))))
(let ((lep (line-end-position 0)))
;; When the first headline start at point 2, don't choke while
;; checking with `org-invisible-p'.
(or (= lep 1)
(not (org-invisible-p (1- (line-end-position 0)))))))
(forward-line -1))
;; At the beginning of the first element within a greater
;; element. Move to the beginning of the greater element.