[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 4a94e03e5e 1/9: Revert "Make denote-rename-file
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 4a94e03e5e 1/9: Revert "Make denote-rename-file and denote-dired-rename-files prompt for signature, if it exists" |
Date: |
Mon, 18 Mar 2024 03:57:47 -0400 (EDT) |
branch: externals/denote
commit 4a94e03e5ed4bbebead1025c471beadc2f2bb739
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Revert "Make denote-rename-file and denote-dired-rename-files prompt for
signature, if it exists"
This reverts commit 232bd908ef633c3de4bfc71fa3dbe0f4f99c9c84.
---
README.org | 6 ------
denote.el | 17 ++++-------------
2 files changed, 4 insertions(+), 19 deletions(-)
diff --git a/README.org b/README.org
index 47bc728396..f612168e3d 100644
--- a/README.org
+++ b/README.org
@@ -1224,12 +1224,6 @@ The command does the same for the =SIGNATURE= prompt,
subject to
~denote-prompts~, by prefilling the minibuffer with the current
signature of =FILE=, if any.
-In interactive use, if =FILE= has a signature, ~denote-rename-file~
-produces a =SIGNATURE= prompt regardless of the value of ~denote-prompts~.
-This way, notes created with the ~denote-signature~ command, or
-equivalent, as a derogation from the norm imposed by ~denote-prompt~,
-do not necessarily lose their signature.
-
Same principle for the =KEYWORDS= prompt: it converts the keywords in
the file name into a comma-separated string and prefills the minibuffer
with it (the =KEYWORDS= prompt accepts more than one keywords, each
diff --git a/denote.el b/denote.el
index 0498812792..b61210ac19 100644
--- a/denote.el
+++ b/denote.el
@@ -2753,14 +2753,9 @@ minibuffer that consists of the current title of FILE.
The
current title is either retrieved from the front matter (such as
the #+title in Org) or from the file name.
-Do the same for the SIGNATURE prompt, subject to `denote-prompts', by
-prefilling the minibuffer with the current signature of FILE, if any.
-
-In interactive use, if FILE has a signature, produce a SIGNATURE prompt
-regardless of the value of `denote-prompts'. This way, notes created
-with the `denote-signature' command, or equivalent, as a derogation from
-the norm imposed by `denote-prompt', do not necessarily lose their
-signature.
+Do the same for the SIGNATURE prompt, subject to `denote-prompts',
+by prefilling the minibuffer with the current signature of FILE,
+if any.
Same principle for the KEYWORDS prompt: convert the keywords in
the file name into a comma-separated string and prefill the
@@ -2849,10 +2844,6 @@ one-by-one, use `denote-dired-rename-files'."
('date
(unless (denote-file-has-identifier-p file)
(aset args 3 (denote-date-prompt))))))
- (when (denote-file-has-signature-p file)
- (aset args 2 (denote-signature-prompt
- (or (denote-retrieve-filename-signature file) "")
- (format "Rename `%s' with SIGNATURE (empty to remove)"
file-in-prompt))))
(append (vector file) args nil)))
(let* ((dir (file-name-directory file))
(id (or (denote-retrieve-filename-identifier file)
@@ -2908,7 +2899,7 @@ setting `denote-rename-no-confirm' to a non-nil value)."
(denote-keywords-prompt
(format "Rename `%s' with KEYWORDS (empty to
remove)" file-in-prompt)
(denote-convert-file-name-keywords-to-crm (or
(denote-retrieve-filename-keywords file) ""))))))
- (signature (when (or signature-p (denote-file-has-signature-p
file))
+ (signature (when signature-p
(denote-signature-prompt
(or (denote-retrieve-filename-signature file)
"")
(format "Rename `%s' with SIGNATURE (empty to
remove)" file-in-prompt))))
- [elpa] externals/denote updated (2e1d5f318f -> 60ff790d33), ELPA Syncer, 2024/03/18
- [elpa] externals/denote 11396de4c9 3/9: Simplify :safe declaration, ELPA Syncer, 2024/03/18
- [elpa] externals/denote 4a94e03e5e 1/9: Revert "Make denote-rename-file and denote-dired-rename-files prompt for signature, if it exists",
ELPA Syncer <=
- [elpa] externals/denote 13407bf7ba 4/9: Reword some statements in the manual about sluggification, ELPA Syncer, 2024/03/18
- [elpa] externals/denote e94cc50fd4 5/9: Make denote-file-name-slug-functions a user option; expand its documentation, ELPA Syncer, 2024/03/18
- [elpa] externals/denote 5789ca599b 8/9: Clarify denote-rename-file docs about keeping components not covered by denote-prompts, ELPA Syncer, 2024/03/18
- [elpa] externals/denote 768464999f 7/9: Fix typo "sepator" to "separator", ELPA Syncer, 2024/03/18
- [elpa] externals/denote e4d070e028 6/9: Merge pull request #293 from jeanphilippegg/renaming-commands, ELPA Syncer, 2024/03/18
- [elpa] externals/denote 090b4dbbef 2/9: Only modify prompted components in renaming commands, ELPA Syncer, 2024/03/18
- [elpa] externals/denote 60ff790d33 9/9: Ensure that keywords are a list in denote-rename-file and denote-dired-rename-files, ELPA Syncer, 2024/03/18