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

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

[elpa] externals/denote 4f65a2d673 02/14: Remove option denote-dired-pos


From: ELPA Syncer
Subject: [elpa] externals/denote 4f65a2d673 02/14: Remove option denote-dired-post-rename-functions
Date: Sun, 17 Jul 2022 02:57:28 -0400 (EDT)

branch: externals/denote
commit 4f65a2d673b1569a29d31deec6ae2e01452425c1
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>

    Remove option denote-dired-post-rename-functions
---
 denote-dired.el | 24 ++----------------------
 1 file changed, 2 insertions(+), 22 deletions(-)

diff --git a/denote-dired.el b/denote-dired.el
index 5d9fb9f7ab..70ff57b15e 100644
--- a/denote-dired.el
+++ b/denote-dired.el
@@ -143,27 +143,6 @@ old name followed by the new one."
   :type 'boolean
   :group 'denote-dired)
 
-(defcustom denote-dired-post-rename-functions
-  (list #'denote-dired-update-dired-buffers
-        #'denote-dired-rewrite-front-matter)
-  "List of functions called after `denote-dired-rename-file'.
-Each function must accept three arguments: FILE, TITLE, and
-KEYWORDS.  The first is the full path to the file provided as a
-string, the second is the human-readable file name (not what
-Denote sluggifies) also as a string, and the third are the
-keywords.  If there is only one keyword, it is a string, else a
-list of strings.
-
-DEVELOPMENT NOTE: the `denote-dired-rewrite-front-matter' needs
-to be tested thoroughly.  It rewrites file contents so we have to
-be sure it does the right thing.  To avoid any trouble, it always
-asks for confirmation before performing the replacement.  This
-confirmation ignores `denote-dired-rename-expert' for the time
-being, though we might want to lift that restriction once
-everything works as intended."
-  :type 'hook
-  :group 'denote-dired)
-
 ;;;; Commands
 
 (defun denote-dired--file-attributes-time (file)
@@ -253,7 +232,8 @@ attachments that the user adds to their notes."
                      (propertize (file-name-nondirectory new-name) 'face 
'success)))
         (rename-file old-name new-name nil)
         (denote-dired--rename-buffer old-name new-name)
-        (run-hook-with-args 'denote-dired-post-rename-functions new-name title 
keywords)))))
+        (denote-dired-update-dired-buffers)
+        (denote-dired-rewrite-front-matter new-name title keywords)))))
 
 (defun denote-dired-update-dired-buffers (&rest _)
   "Update Dired buffers of variable `denote-directory'.



reply via email to

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