[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."
- [nongnu] elpa/annotate e044f6d898 03/13: - updated Changelog., (continued)
- [nongnu] elpa/annotate e044f6d898 03/13: - updated Changelog., ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate 145719fe7b 02/13: - increased version number;, ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate 51e3f6248e 08/13: - updated, and added if missing, docstrings., ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate d611b272e5 10/13: - removed a duplicated label using a constant., ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate f166cca70b 13/13: Merge pull request #135 from cage2/fix-closing-indirect-buffer, ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate ce49471b20 05/13: - returned nil as the actual filename of an indirect buffer., ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate 51ae976d39 01/13: - fixed an error that was signalled when the annotated buffer was an indirect one., ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate f8286fb24d 12/13: - updated changelog., ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate 5f39830efc 06/13: - create a proper buffer from an indirect one that has been annotated., ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate e4a266fbb0 11/13: - removed a duplicated label using a constant., ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate 72cfd731e9 04/13: - signalled a warning, not an error, when annotated buffer is not visiting a file supported by annotate mode.,
ELPA Syncer <=