emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/annotate c6864fb4a0 1/6: - prevented running the function


From: ELPA Syncer
Subject: [nongnu] elpa/annotate c6864fb4a0 1/6: - prevented running the function 'annotate--remove-annotation-property'
Date: Tue, 22 Nov 2022 12:58:54 -0500 (EST)

branch: elpa/annotate
commit c6864fb4a0e662eb74b9de3951d2db70565b2813
Author: cage <cage@invalid>
Commit: cage <cage@invalid>

    - prevented running  the function 'annotate--remove-annotation-property'
      (tied to a string property) in a buffer where annotate-mode is null.
---
 annotate.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/annotate.el b/annotate.el
index f1488ba10d..563d82511f 100644
--- a/annotate.el
+++ b/annotate.el
@@ -1329,7 +1329,8 @@ a        a**"
 (defun annotate--remove-annotation-property (_begin end)
   "Cleans up annotation properties associated within a region
 surrounded by `BEGIN' and `END'."
-  (when (and (> (buffer-size) 0)
+  (when (and annotate-mode
+             (> (buffer-size) 0)
              (not (buffer-narrowed-p)))
     (with-silent-modifications
       (annotate-with-disable-read-only



reply via email to

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