emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 9cc59ff: outline-invisible-p): Only return `t' for


From: Bastien Guerry
Subject: [Emacs-diffs] master 9cc59ff: outline-invisible-p): Only return `t' for the 'outline property
Date: Fri, 30 Sep 2016 08:06:17 +0000 (UTC)

branch: master
commit 9cc59ffbbb2f20fbbf1c72d2e0c9dc47c7906a99
Author: Paul Rankin <address@hidden>
Commit: Bastien <address@hidden>

    outline-invisible-p): Only return `t' for the 'outline property
    
    * lisp/outline.el (outline-invisible-p): Only return `t' for
    the 'outline property.
---
 lisp/outline.el |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/outline.el b/lisp/outline.el
index 2001cdf..f6ab1e4 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -388,9 +388,9 @@ at the end of the buffer."
                      nil 'move))
 
 (defsubst outline-invisible-p (&optional pos)
-  "Non-nil if the character after POS is invisible.
+  "Non-nil if the character after POS has outline invisible property.
 If POS is nil, use `point' instead."
-  (get-char-property (or pos (point)) 'invisible))
+  (eq (get-char-property (or pos (point)) 'invisible) 'outline))
 
 (defun outline-back-to-heading (&optional invisible-ok)
   "Move to previous heading line, or beg of this line if it's a heading.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]