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

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

[nongnu] elpa/annotate 832091a37d 040/372: don't save duplicate annotati


From: ELPA Syncer
Subject: [nongnu] elpa/annotate 832091a37d 040/372: don't save duplicate annotations
Date: Fri, 4 Feb 2022 16:58:17 -0500 (EST)

branch: elpa/annotate
commit 832091a37dffa57f738f55feca065c4229d81b04
Author: Bastian Bechtold <basti@bastibe.de>
Commit: Bastian Bechtold <basti@bastibe.de>

    don't save duplicate annotations
    
    it is unclear where these might have come from, but a user reported
    seeing duplicate annotations. Now, they are not saved at least.
---
 annotate.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/annotate.el b/annotate.el
index e6d18db435..41c8f5d754 100644
--- a/annotate.el
+++ b/annotate.el
@@ -5,7 +5,7 @@
 ;; Maintainer: Bastian Bechtold
 ;; URL: https://github.com/bastibe/annotate.el
 ;; Created: 2015-06-10
-;; Version: 0.3.3
+;; Version: 0.3.4
 
 ;; This file is NOT part of GNU Emacs.
 
@@ -50,7 +50,7 @@
 ;;;###autoload
 (defgroup annotate nil
   "Annotate files without changing them."
-  :version "0.3.3"
+  :version "0.3.4"
   :group 'text)
 
 ;;;###autoload
@@ -180,6 +180,9 @@
       (setq all-annotations
             (push (cons (buffer-file-name) file-annotations)
                   all-annotations)))
+    ;; remove duplicate entries (a user reported seeing them)
+    (dolist (entry all-annotations)
+      (delete-dups entry))
     ;; skip files with no annotations
     (annotate-dump-annotation-data (cl-remove-if
                                     (lambda (entry)



reply via email to

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