[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 779ef33436 03/33: Merge pull request #248 from v
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 779ef33436 03/33: Merge pull request #248 from vedang/rename-honours-denote-prompts |
Date: |
Wed, 14 Feb 2024 06:57:46 -0500 (EST) |
branch: externals/denote
commit 779ef3343668d1b9155e1b4e306466bbff64701e
Merge: 9a764923bc adf8c6fdc8
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: GitHub <noreply@github.com>
Merge pull request #248 from vedang/rename-honours-denote-prompts
Update denote-create-* commands to respect `denote-prompts`
---
denote.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/denote.el b/denote.el
index c3e5cb52ca..2d1d505184 100644
--- a/denote.el
+++ b/denote.el
@@ -2249,6 +2249,10 @@ With optional PROMPT-TEXT use it instead of a generic
prompt."
(defalias 'denote-create-note 'denote
"Alias for `denote' command.")
+(defun denote--add-prompts (additional-prompts)
+ "Add all the elements in the ADDITIONAL-PROMPTS list to `denote-prompts'."
+ (seq-union denote-prompts additional-prompts))
+
;;;###autoload
(defun denote-type ()
"Create note while prompting for a file type.
@@ -2257,7 +2261,7 @@ This is the equivalent to calling `denote' when
`denote-prompts'
is set to \\='(file-type title keywords)."
(declare (interactive-only t))
(interactive)
- (let ((denote-prompts '(file-type title keywords)))
+ (let ((denote-prompts (denote--add-prompts '(file-type))))
(call-interactively #'denote)))
(defalias 'denote-create-note-using-type 'denote-type
@@ -2276,7 +2280,7 @@ This is the equivalent to calling `denote' when
`denote-prompts'
is set to \\='(date title keywords)."
(declare (interactive-only t))
(interactive)
- (let ((denote-prompts '(date title keywords)))
+ (let ((denote-prompts (denote--add-prompts '(date))))
(call-interactively #'denote)))
(defalias 'denote-create-note-using-date 'denote-date
@@ -2293,7 +2297,7 @@ This is equivalent to calling `denote' when
`denote-prompts' is
set to \\='(subdirectory title keywords)."
(declare (interactive-only t))
(interactive)
- (let ((denote-prompts '(subdirectory title keywords)))
+ (let ((denote-prompts (denote--add-prompts '(subdirectory))))
(call-interactively #'denote)))
(defalias 'denote-create-note-in-subdirectory 'denote-subdirectory
@@ -2311,7 +2315,7 @@ This is equivalent to calling `denote' when
`denote-prompts' is
set to \\='(template title keywords)."
(declare (interactive-only t))
(interactive)
- (let ((denote-prompts '(template title keywords)))
+ (let ((denote-prompts (denote--add-prompts '(template))))
(call-interactively #'denote)))
(defalias 'denote-create-note-with-template 'denote-template
@@ -2325,7 +2329,7 @@ This is the equivalent to calling `denote' when
`denote-prompts'
is set to \\='(signature title keywords)."
(declare (interactive-only t))
(interactive)
- (let ((denote-prompts '(signature title keywords)))
+ (let ((denote-prompts (denote--add-prompts '(signature))))
(call-interactively #'denote)))
(defalias 'denote-create-note-using-signature 'denote-signature
- [elpa] externals/denote updated (561911e747 -> 1d6ea5a6d9), ELPA Syncer, 2024/02/14
- [elpa] externals/denote 9a764923bc 01/33: Add WORK-IN-PROGRESS implementation of 'denote-rename-file' that honours 'denote-prompts', ELPA Syncer, 2024/02/14
- [elpa] externals/denote 779ef33436 03/33: Merge pull request #248 from vedang/rename-honours-denote-prompts,
ELPA Syncer <=
- [elpa] externals/denote aa865fa0d9 06/33: Update denote-rename-file doc string to describe its current behaviour, ELPA Syncer, 2024/02/14
- [elpa] externals/denote e9e9c8ef2b 07/33: Tweak the behaviour of denote-create-unique-file-identifier, ELPA Syncer, 2024/02/14
- [elpa] externals/denote b02bf9d7c2 09/33: Add TODO about possible tweak to denote-rename-file, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 764125525e 12/33: Broaden the scope of denote-rename-no-confirm to save buffers as well, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 357c363242 17/33: Clarify that absent denote-prompts mean nil for relevant denote-rename-file arguments, ELPA Syncer, 2024/02/14
- [elpa] externals/denote ce9e2dd1bf 13/33: Complete the documentation of denote-rename-file, noting all modalities of interaction, ELPA Syncer, 2024/02/14
- [elpa] externals/denote ab20f4b0af 15/33: Make denote-dired-rename-files honour the denote-prompts (same as denote-rename-file), ELPA Syncer, 2024/02/14
- [elpa] externals/denote 37508c99d4 16/33: Update the documentation of denote-dired-rename-marked-files, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 4cce51a092 22/33: Change how denote-rename-file passes DATE to denote-create-unique-file-identifier (per e9e9c8e), ELPA Syncer, 2024/02/14
- [elpa] externals/denote c5f8ef1d8a 23/33: Add TODO about possible tweak to denote-rename-file, ELPA Syncer, 2024/02/14