[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'.
- [elpa] externals/denote updated (320c687791 -> 798b595220), ELPA Syncer, 2022/07/17
- [elpa] externals/denote 4f65a2d673 02/14: Remove option denote-dired-post-rename-functions,
ELPA Syncer <=
- [elpa] externals/denote 171270d901 04/14: Update dired buffers in subdirectories, ELPA Syncer, 2022/07/17
- [elpa] externals/denote 9fcd37911e 05/14: Refactor renaming commands, ELPA Syncer, 2022/07/17
- [elpa] externals/denote d823de7e82 06/14: Add denote-dired-rename-file alias, ELPA Syncer, 2022/07/17
- [elpa] externals/denote f35aefbc2f 09/14: Remove condition in denote-dired-rename-marked-files, ELPA Syncer, 2022/07/17
- [elpa] externals/denote 06bcd2d61b 11/14: Mark denote-dired-rename-file and denote-dired-convert-file-to-denote obsolete, ELPA Syncer, 2022/07/17
- [elpa] externals/denote 24a0037d40 12/14: denote-retrieve--search only works on Denote file types, ELPA Syncer, 2022/07/17
- [elpa] externals/denote 798b595220 14/14: Merge pull request #51 from jeanphilippegg/renaming-functions, ELPA Syncer, 2022/07/17
- [elpa] externals/denote 0844cfb98a 07/14: Rework denote-dired-rename-marked-files, ELPA Syncer, 2022/07/17
- [elpa] externals/denote 018f2d5618 10/14: Make denote-dired-post-rename-functions obsolete, ELPA Syncer, 2022/07/17
- [elpa] externals/denote 3df00e3758 13/14: Merge remote-tracking branch 'origin/main' into renaming-functions, ELPA Syncer, 2022/07/17