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

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

[nongnu] elpa/annotate 3d7b80448d 1/7: - fixed deletion of annotations;


From: ELPA Syncer
Subject: [nongnu] elpa/annotate 3d7b80448d 1/7: - fixed deletion of annotations;
Date: Thu, 7 Apr 2022 10:58:03 -0400 (EDT)

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

    - fixed deletion of annotations;
    
      The   function  'annotate-delete-annotation'   does   not  set   the
      modification bit after deleting so the annotation was not deleted at
      all if the buffer was saved just after calling this command.
    
      Also the coloring of the rest of the annotation was not updated.
---
 annotate.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/annotate.el b/annotate.el
index e92d01746d..3955cdb59c 100644
--- a/annotate.el
+++ b/annotate.el
@@ -2108,7 +2108,9 @@ point)."
   (when-let ((annotation (annotate-annotation-at point)))
     (let* ((delete-confirmed-p (annotate--confirm-annotation-delete)))
       (when delete-confirmed-p
-        (annotate--delete-annotation-chain annotation)))))
+        (annotate--delete-annotation-chain annotation)
+        (font-lock-flush)
+        (set-buffer-modified-p t)))))
 
 (defun annotate-change-annotation (pos)
   "Change annotation at point. If empty, delete annotation."



reply via email to

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