branch: externals/denote
commit 1c3f4042f9cbf4746b94aec1068943086ba8935a
Author: Tobias Lidman-Strauss <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Function denote-org-capture-with-prompts updated to accept signature prompt 
(new try)
---
 README.org | 3 +--
 denote.el  | 6 +++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/README.org b/README.org
index 260a978bf2..b488a58ae1 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 ef82e8f52a..5eb6767e7c 100644
--- a/denote.el
+++ b/denote.el
@@ -7033,7 +7033,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
@@ -7043,8 +7043,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
@@ -7056,6 +7055,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))

Reply via email to