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

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

[elpa] externals/denote 8505a48ecf 1/2: Document that denote-rename-{add


From: ELPA Syncer
Subject: [elpa] externals/denote 8505a48ecf 1/2: Document that denote-rename-{add, remove}-keywords run the denote-after-rename-file-hook
Date: Thu, 14 Mar 2024 12:58:07 -0400 (EDT)

branch: externals/denote
commit 8505a48ecfbff4c0b05259c368ed7f7b3dc39123
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Document that denote-rename-{add,remove}-keywords run the 
denote-after-rename-file-hook
---
 README.org | 3 +++
 denote.el  | 8 ++++++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index aaa4da9e01..cfd9ef4b4c 100644
--- a/README.org
+++ b/README.org
@@ -1530,6 +1530,9 @@ the buffer. Similarly, they both interpret a non-nil 
value for the
 user option ~denote-rename-no-confirm~ the same as the prefix argument
 ([[#h:a2ae9090-c49e-4b32-bcf5-eb8944241fd7][The ~denote-rename-no-confirm~ 
option]]).
 
+Furthermore, both commands call the ~denote-after-rename-file-hook~ as
+a final step after carrying out their task.
+
 #+findex: denote-rename-add-keywords
 #+findex: denote-rename-remove-keywords
 Aliases for these commands are: ~denote-rename-add-keywords~ and
diff --git a/denote.el b/denote.el
index 6b14ac498a..874d9296c2 100644
--- a/denote.el
+++ b/denote.el
@@ -3072,7 +3072,9 @@ the buffer unsaved for further review.
 
 If the user option `denote-rename-no-confirm' is non-nil,
 interpret it the same way as SAVE-BUFFER, making SAVE-BUFFER
-reduntant."
+reduntant.
+
+Run `denote-after-rename-file-hook' as a final step."
   (interactive (list (denote-keywords-prompt "Add KEYWORDS") 
current-prefix-arg))
   ;; A combination of if-let and let, as we need to take into account
   ;; the scenario in which there are no keywords yet.
@@ -3114,7 +3116,9 @@ review.
 
 If the user option `denote-rename-no-confirm' is non-nil,
 interpret it the same way as SAVE-BUFFER, making SAVE-BUFFER
-reduntant."
+reduntant.
+
+Run `denote-after-rename-file-hook' as a final step."
   (declare (interactive-only t))
   (interactive "P")
   (if-let ((file (buffer-file-name))



reply via email to

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