branch: elpa/annotate commit 832091a37dffa57f738f55feca065c4229d81b04 Author: Bastian Bechtold <ba...@bastibe.de> Commit: Bastian Bechtold <ba...@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)