ソースを参照

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.
Bastien Guerry 5 年 前
コミット
f17d301e17
1 ファイル変更7 行追加0 行削除
  1. 7 0
      lisp/org.el

+ 7 - 0
lisp/org.el

@@ -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)))))))