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

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

[elpa] externals/denote ad13d32348 31/33: Clarify that absent denote-pro


From: ELPA Syncer
Subject: [elpa] externals/denote ad13d32348 31/33: Clarify that absent denote-prompts mean nil for relevant denote-rename-file arguments
Date: Wed, 14 Feb 2024 06:57:49 -0500 (EST)

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

    Clarify that absent denote-prompts mean nil for relevant denote-rename-file 
arguments
---
 README.org | 7 ++++++-
 denote.el  | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index 55fd940789..850b1e2ee3 100644
--- a/README.org
+++ b/README.org
@@ -1188,7 +1188,12 @@ separated by a comma, else the ~crm-sepator~).
 For all prompts, the ~denote-rename-file~ interprets an empty input as
 an instruction to remove that file name component. For example, if a
 =TITLE= prompt is available and =FILE= is 
=20240211T093531--some-title__keyword1.org=
-then it renames =FILE= to =20240211T093531__keyword1.org=.
+then it renames =FILE= to =20240211T093531__keyword1.org=. For
+interactive use, this also means that if a prompt is missing from the
+~denote-prompts~ the corresponding file name component will be removed
+during the renaming process (e.g. a ~denote-prompts~ without an entry
+for keywords is the same as passing an empty/nil =KEYWORDS= argument,
+thus removing the keywords of the file).
 
 [ NOTE: Please check with your minibuffer user interface how to
   provide an empty input. The Emacs default setup accepts the empty
diff --git a/denote.el b/denote.el
index e9f4099672..3ab4a57896 100644
--- a/denote.el
+++ b/denote.el
@@ -2687,7 +2687,12 @@ keywords, each separated by a comma, else the 
`crm-sepator').
 For all prompts, interpret an empty input as an instruction to
 remove that file name component.  For example, if a TITLE prompt
 is available and FILE is 20240211T093531--some-title__keyword1.org
-then rename FILE to 20240211T093531__keyword1.org.
+then rename FILE to 20240211T093531__keyword1.org.  For
+interactive use, this also means that if a prompt is missing from
+the `denote-prompts' the corresponding file name component will
+be removed during the renaming process (e.g.  a `denote-prompts'
+without an entry for keywords is the same as passing an empty/nil
+KEYWORDS argument, thus removing the keywords of the file).
 
 [ NOTE: Please check with your minibuffer user interface how to
   provide an empty input.  The Emacs default setup accepts the



reply via email to

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