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

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

[nongnu] elpa/annotate 641daae9d0 335/372: - updated docs and version nu


From: ELPA Syncer
Subject: [nongnu] elpa/annotate 641daae9d0 335/372: - updated docs and version number.
Date: Fri, 4 Feb 2022 16:59:18 -0500 (EST)

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

    - updated docs and version number.
---
 Changelog   |  8 +++++++-
 NEWS.org    | 12 ++++++++++++
 README.org  |  8 ++++++--
 annotate.el |  4 ++--
 4 files changed, 27 insertions(+), 5 deletions(-)

diff --git a/Changelog b/Changelog
index e7434ad668..33999c0519 100644
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,10 @@
-021-04-30  cage
+2021-05-07  cage
+
+        * annotate.el:
+
+       - prevented saving a file with an empty database;
+
+2021-04-30  cage
 
         * annotate.el:
 
diff --git a/NEWS.org b/NEWS.org
index eb3d0be647..3e9c0eb0dc 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -231,3 +231,15 @@
 
   This version fixes a bug that prevented command like
   'comment-region' to works properly when annotate-mode was active.
+
+- 2021-05-07 V1.3.0 cage ::
+
+  This version  added a procedure to  prevent an empty database  to be
+  saved on the user's disk.
+
+  Moreover if an  empty annotations database is going  to overwrite an
+  existing stale database file on disk the file is deleted instead.
+
+  Before  deleting the  old database  file a  confirmation message  is
+  printed    on    the    minibuffer   if    the    custom    variable
+  'annotate-database-confirm-deletion' is non nil (default: t).
diff --git a/README.org b/README.org
index f9e8c65931..eabe5b8ec6 100644
--- a/README.org
+++ b/README.org
@@ -53,15 +53,19 @@ see:
 [[https://github.com/bastibe/annotate.el/issues/68][this thread]] and, in 
particular
 
[[https://github.com/bastibe/annotate.el/issues/68#issuecomment-728218022][this 
message]].
 
+If an  empty annotation database  (in memory) is saved  the database
+file  is deleted  instead, if  ~annotate-database-confirm-deletion~ is
+non  nil (the  default) a  confirmation action  is asked  to the  user
+before actually remove the file from the file system.
+
 Users of
 [[https://github.com/emacscollective/no-littering][no-littering]]
 can take advantage of its packages generated files management.
 
 **** related customizable variable
      - ~annotate-file~
-
-**** related customizable variable
      - ~annotate-warn-if-hash-mismatch~
+     - ~annotate-database-confirm-deletion~
 
 ** keybindings
 
diff --git a/annotate.el b/annotate.el
index 6b1a2a1d64..2295d2b19a 100644
--- a/annotate.el
+++ b/annotate.el
@@ -7,7 +7,7 @@
 ;; Maintainer: Bastian Bechtold
 ;; URL: https://github.com/bastibe/annotate.el
 ;; Created: 2015-06-10
-;; Version: 1.2.1
+;; Version: 1.3.0
 
 ;; This file is NOT part of GNU Emacs.
 
@@ -58,7 +58,7 @@
 ;;;###autoload
 (defgroup annotate nil
   "Annotate files without changing them."
-  :version "1.2.1"
+  :version "1.3.0"
   :group 'text)
 
 ;;;###autoload



reply via email to

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