[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 3e3c1b1066 368/372: - fixed function name;
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 3e3c1b1066 368/372: - fixed function name; |
Date: |
Fri, 4 Feb 2022 16:59:23 -0500 (EST) |
branch: elpa/annotate
commit 3e3c1b1066b5ba4bbe5ad8743666e558204b4da3
Author: cage <cage@invalid>
Commit: cage <cage@invalid>
- fixed function name;
- removed annotated files references that are present only in the imported
database;
- fixed typo.
---
annotate.el | 27 +++++++++++++++++----------
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/annotate.el b/annotate.el
index a3fe14d02c..28f84ea161 100644
--- a/annotate.el
+++ b/annotate.el
@@ -3282,16 +3282,23 @@ code, always use load files from trusted sources!"
(let ((record-filename
(annotate-filename-from-dump a)))
(file-equal-p
record-filename filename)))
db-2)))
- (annotate--db-concat (cl-rest db-1)
- rest-of-db-2
- (push concatenated-record accum)))
- (annotate--db-concat (cl-rest db-1)
- db-2
- (push first-record accum)))))))
+ (annotate--db-merge-databases (cl-rest db-1)
+ rest-of-db-2
+ (push concatenated-record accum)))
+ (annotate--db-merge-databases (cl-rest db-1)
+ db-2
+ (push first-record accum)))))))
(defun annotate-import-annotations ()
(interactive)
- (let* ((confirm-message (concat "Importing databases from untrusted
source may cause sereve "
+ (cl-flet ((deserialize-db (file)
+ (ignore-errors (annotate--deserialize-database-file file)))
+ (remove-non-existing-files (annotations)
+ (cl-remove-if-not (lambda (a)
+ (let ((filename (annotate-filename-from-dump
a)))
+ (file-exists-p filename)))
+ annotations)))
+ (let* ((confirm-message (concat "Importing databases from untrusted
source may cause severe "
"security issues, continue? [y/N] "))
(import-confirmed-p (or (not annotate-database-confirm-import)
(string= (read-from-minibuffer (format
confirm-message
@@ -3299,13 +3306,13 @@ code, always use load files from trusted sources!"
"y"))))
(when import-confirmed-p
(let* ((imported-db-name (read-file-name "Choose the database to import:
"))
- (imported-db (annotate--deserialize-database-file
imported-db-name))
- (hosting-db (annotate--deserialize-database-file
annotate-file))
+ (imported-db (remove-non-existing-files (deserialize-db
imported-db-name)))
+ (hosting-db (deserialize-db annotate-file))
(merged-db (annotate--db-merge-databases hosting-db
imported-db)))
(annotate-dump-annotation-data merged-db)
(annotate-switch-db t annotate-file)
(when annotate-use-messages
- (message "Imprted annotations from %s." imported-db-name))))))
+ (message "Imported annotations from %s." imported-db-name)))))))
;;; end of merging datatase
- [nongnu] elpa/annotate 485060813b 277/372: - added procedures to pad multiline annotation text., (continued)
- [nongnu] elpa/annotate 485060813b 277/372: - added procedures to pad multiline annotation text., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e004ae7e97 281/372: - updated version;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3e5d14fde8 287/372: - updated documentation., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 6415fb6111 294/372: - updated NEWS and CHANGELOG;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4890d2d2a2 295/372: Merge pull request #95 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 85d7c87e08 293/372: - added padding also for notes placed on the margin of the window., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate ac55086d60 301/372: - fixed typo., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3415b7ac08 321/372: - changed behaviour when user is annotation a newline character;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f33eecba7b 362/372: - prevented asking to delete a database that does not actually exists, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 1350e1d073 338/372: - fixed annotated text shown in the summary window, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3e3c1b1066 368/372: - fixed function name;,
ELPA Syncer <=
- [nongnu] elpa/annotate a484ffa0b6 319/372: - allowed removing (or cutting) annotations when buffer is in read-only mode., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 936389e36a 316/372: - prevented asking for annotation when trying to annotate a newline character., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 36d3729c27 339/372: - updated version number and docs., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate a8762cd08a 344/372: - removed garbage at the end of an error message., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 9aba6305fe 342/372: Merge pull request #109 from cage2/fix-replace-button, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate bd12129213 333/372: Merge pull request #106 from cage2/fixed-call-comment-region, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 83e81e0979 369/372: - added missing docstrings and improved a bit the old ones., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f5436b2bff 366/372: - added helper functions to manage annotation's interval and 'annotate-db-merge-annotations'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 59c52e7318 162/372: - updated documentation to reflects changes in the code, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate fd9c403ecc 164/372: - changed quotation mark sentence., ELPA Syncer, 2022/02/04