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

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

[nongnu] elpa/annotate 72cfd731e9 04/13: - signalled a warning, not an e


From: ELPA Syncer
Subject: [nongnu] elpa/annotate 72cfd731e9 04/13: - signalled a warning, not an error, when annotated buffer is not visiting a file supported by annotate mode.
Date: Fri, 16 Sep 2022 11:58:22 -0400 (EDT)

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

    - signalled a warning, not an error, when annotated buffer is not visiting 
a file supported by annotate mode.
---
 annotate.el | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/annotate.el b/annotate.el
index 97f00fc51a..a9558eeda1 100644
--- a/annotate.el
+++ b/annotate.el
@@ -240,6 +240,11 @@ annotations positions could be outdated.")
   "The message to warn the user that file has been modified and
 an annotations could not be restored.")
 
+(defconst annotate-warn-buffer-has-no-valid-file
+  "Annotations can not be saved: unable to find a file for buffer %S"
+  "The message to warn the user that a buffer it is not visiting
+ a valid file to be annotated.")
+
 (defconst annotate-error-summary-win-filename-invalid
   "Error: File not found or in an unsupported format"
  "The message to warn the user that file can not be show in
@@ -1468,8 +1473,10 @@ essentially what you get from:
                                                        all-annotations))
           (when annotate-use-messages
             (message "Annotations saved.")))
-      (user-error "Annotations can not be saved: unable to find a file for 
buffer %S"
-                  (current-buffer)))))
+      (lwarn '(annotate-mode)
+             :warning
+             annotate-warn-buffer-has-no-valid-file
+             (current-buffer)))))
 
 (defun annotate-load-annotation-old-format ()
   "Load all annotations from disk in old format."



reply via email to

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