|
@@ -18560,8 +18560,8 @@ beyond the end of the headline."
|
|
|
(if (bobp)
|
|
|
nil
|
|
|
(backward-char 1)
|
|
|
- (if (org-invisible-p)
|
|
|
- (while (and (not (bobp)) (org-invisible-p))
|
|
|
+ (if (org-truely-invisible-p)
|
|
|
+ (while (and (not (bobp)) (org-truely-invisible-p))
|
|
|
(backward-char 1)
|
|
|
(beginning-of-line 1))
|
|
|
(forward-char 1))))
|
|
@@ -18779,6 +18779,17 @@ interactive command with similar behavior."
|
|
|
(outline-invisible-p)
|
|
|
(get-char-property (point) 'invisible)))
|
|
|
|
|
|
+(defun org-truely-invisible-p ()
|
|
|
+ "Check if point is at a character currently not visible.
|
|
|
+This version does not only check the character property, but also
|
|
|
+`visible-mode'."
|
|
|
+ ;; Early versions of noutline don't have `outline-invisible-p'.
|
|
|
+ (if (org-bound-and-true-p visible-mode)
|
|
|
+ nil
|
|
|
+ (if (fboundp 'outline-invisible-p)
|
|
|
+ (outline-invisible-p)
|
|
|
+ (get-char-property (point) 'invisible))))
|
|
|
+
|
|
|
(defun org-invisible-p2 ()
|
|
|
"Check if point is at a character currently not visible."
|
|
|
(save-excursion
|