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

lisp/org.el (org-forward-heading-same-level): Add a comment

* lisp/org.el (org-forward-heading-same-level): Add a comment adding
a FIXME, in case this change appears to impact Org itself.
This commit is contained in:
Bastien Guerry 2020-09-08 11:24:51 +02:00
parent a700fadd72
commit f17d301e17

View file

@ -20545,6 +20545,13 @@ non-nil it will also look at invisible ones."
(cond ((< l level) (setq count 0))
((and (= l level)
(or invisible-ok
;; FIXME: See commit a700fadd72 and the
;; related discussion on why using
;; `org--line-fully-invisible-p' is needed
;; here, which is to serve the needs of an
;; external package. If the change is
;; wrong regarding Org itself, it should
;; be removed.
(not (org--line-fully-invisible-p))))
(cl-decf count)
(when (= l level) (setq result (point)))))))