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

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

[nongnu] elpa/annotate e4a266fbb0 11/13: - removed a duplicated label us


From: ELPA Syncer
Subject: [nongnu] elpa/annotate e4a266fbb0 11/13: - removed a duplicated label using a constant.
Date: Fri, 16 Sep 2022 11:58:22 -0400 (EDT)

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

    - removed a duplicated label using a constant.
---
 annotate.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/annotate.el b/annotate.el
index c932cc780e..121dc59be7 100644
--- a/annotate.el
+++ b/annotate.el
@@ -313,6 +313,9 @@ annotation as defined in the database."
 (defconst annotate-message-annotation-loaded "Annotations loaded."
   "The message shown when annotations has been loaded")
 
+(defconst annotate-message-annotations-not-found "No annotations found."
+  "The message shown when no annotations has been loaded from the database.")
+
 ;;;; custom errors
 
 (define-error 'annotate-error "Annotation error")
@@ -1560,7 +1563,7 @@ essentially what you get from:
                                     annotations))
     (when (and (null annotations)
                annotate-use-messages)
-      (message "No annotations found."))
+      (message annotate-message-annotations-not-found))
     (when (not (null annotations))
       (save-excursion
         (dolist (annotation annotations)
@@ -1630,7 +1633,7 @@ example:
         (cond
          ((and (null annotations)
                annotate-use-messages)
-          (message "No annotations found."))
+          (message annotate-message-annotations-not-found))
         (annotations
          (save-excursion
            (dolist (annotation annotations)



reply via email to

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