[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 51ae976d39 01/13: - fixed an error that was signa
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 51ae976d39 01/13: - fixed an error that was signalled when the annotated buffer was an indirect one. |
Date: |
Fri, 16 Sep 2022 11:58:21 -0400 (EDT) |
branch: elpa/annotate
commit 51ae976d39631f45c59449d540cf7ea6cb3f90c0
Author: cage <cage@invalid>
Commit: cage <cage@invalid>
- fixed an error that was signalled when the annotated buffer was an
indirect one.
---
annotate.el | 41 +++++++++++++++++++++++------------------
1 file changed, 23 insertions(+), 18 deletions(-)
diff --git a/annotate.el b/annotate.el
index 895a3ca18c..06fbba5a9f 100644
--- a/annotate.el
+++ b/annotate.el
@@ -1328,6 +1328,7 @@ buffer is not on info-mode"
"Get the actual file name of the current buffer."
(substring-no-properties (or (annotate-info-actual-filename)
(buffer-file-name)
+ (buffer-file-name (buffer-base-buffer))
"")))
(cl-defun annotate-guess-filename-for-dump (filename
@@ -1447,24 +1448,28 @@ essentially what you get from:
(annotate-describe-annotations)))
(all-annotations (annotate-load-annotation-data t))
(filename (annotate-guess-filename-for-dump
(annotate-actual-file-name))))
- (if (assoc-string filename all-annotations)
- (setcdr (assoc-string filename all-annotations)
- (list file-annotations
- (annotate-buffer-checksum)))
- (setq all-annotations
- (push (list filename
- file-annotations
- (annotate-buffer-checksum))
- 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)
- (null
(annotate-annotations-from-dump entry)))
- all-annotations))
- (when annotate-use-messages
- (message "Annotations saved."))))
+ (if filename
+ (progn
+ (if (assoc-string filename all-annotations)
+ (setcdr (assoc-string filename all-annotations)
+ (list file-annotations
+ (annotate-buffer-checksum)))
+ (setq all-annotations
+ (push (list filename
+ file-annotations
+ (annotate-buffer-checksum))
+ 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)
+ (null
(annotate-annotations-from-dump entry)))
+ 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)))))
(defun annotate-load-annotation-old-format ()
"Load all annotations from disk in old format."
- [nongnu] elpa/annotate updated (0f4ffd5c1c -> f166cca70b), ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate f92e7ff48e 09/13: - updated NEWS.org., ELPA Syncer, 2022/09/16
- [nongnu] elpa/annotate d1237bb158 07/13: - shown a warning when killing an indirect buffer;, ELPA Syncer, 2022/09/16
- [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 <=
- [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, 2022/09/16