branch: externals/denote
commit e3a363f367c162139b16f4c997d32c3861139efd
Merge: 1d0b6fb5d4 1c3f4042f9
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Merge branch 'drostan-main-patch-47068' into 'main'
Function denote-org-capture-with-prompts updated to accept signature prompt
(new try)
See merge request protesilaos/denote!2
---
README.org | 3 +--
denote.el | 6 +++---
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/README.org b/README.org
index 5ce90ac9be..1dc6a8fdd5 100644
--- a/README.org
+++ b/README.org
@@ -991,8 +991,7 @@ the date and identifier fields specified. It also makes
the file name
consist of only the identifier plus the Org file name extension
([[#h:4e9c7512-84dc-4dfb-9fa9-e15d51178e5d][The file-naming scheme]]).
Otherwise, it produces a minibuffer prompt for every non-nil value
-that corresponds to the =TITLE=, =KEYWORDS=, =SUBDIRECTORY=, =DATE=,
-and =TEMPLATE= arguments. The prompts are those used by the standard
+that corresponds to the =TITLE=, =KEYWORDS=, =SUBDIRECTORY=, =DATE=,
=TEMPLATE=, and =SIGNATURE= arguments. The prompts are those used by the
standard
~denote~ command and all of its utility commands
([[#h:17896c8c-d97a-4faa-abf6-31df99746ca6][Points of entry]]).
When returning the contents that fill in the Org capture template, the
diff --git a/denote.el b/denote.el
index 34ae65f6a8..b9c13afcb2 100644
--- a/denote.el
+++ b/denote.el
@@ -7040,7 +7040,7 @@ Consult the manual for template samples."
;; by passing a single PROMPTS that is the same value as `denote-prompts'?
;;;###autoload
-(defun denote-org-capture-with-prompts (&optional title keywords subdirectory
date template)
+(defun denote-org-capture-with-prompts (&optional title keywords subdirectory
date template signature)
"Like `denote-org-capture' but with optional prompt parameters.
When called without arguments, do not prompt for anything. Just
@@ -7050,8 +7050,7 @@ name consist of only the identifier plus the Org file name
extension.
Otherwise produce a minibuffer prompt for every non-nil value
-that corresponds to the TITLE, KEYWORDS, SUBDIRECTORY, DATE, and
-TEMPLATE arguments. The prompts are those used by the standard
+that corresponds to the TITLE, KEYWORDS, SUBDIRECTORY, DATE, TEMPLATE,
SIGNATURE arguments. The prompts are those used by the standard
`denote' command and all of its utility commands.
When returning the contents that fill in the Org capture
@@ -7063,6 +7062,7 @@ must exist---Denote does not create them. Same principle
for
TEMPLATE as templates must exist and are specified in the user
option `denote-templates'."
(let ((denote-prompts '()))
+ (when signature (push 'signature denote-prompts))
(when template (push 'template denote-prompts))
(when date (push 'date denote-prompts))
(when subdirectory (push 'subdirectory denote-prompts))