[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote d9d2f2767f 19/44: Merge branch 'sequence-notes-e
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote d9d2f2767f 19/44: Merge branch 'sequence-notes-extension' of github.com:protesilaos/denote into sequence-notes-extension |
Date: |
Wed, 1 Jan 2025 03:57:48 -0500 (EST) |
branch: externals/denote
commit d9d2f2767fa83a2364829d3257e3eaa8214018d2
Merge: bb357f03bb 36cb4234dd
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Merge branch 'sequence-notes-extension' of github.com:protesilaos/denote
into sequence-notes-extension
---
denote-sequence.el | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/denote-sequence.el b/denote-sequence.el
index b3751b1faa..f23b30148e 100644
--- a/denote-sequence.el
+++ b/denote-sequence.el
@@ -242,21 +242,25 @@ A sequence is a Denote signature that conforms with
`denote-sequence-p'."
(error "There are no sequence notes in the `denote-directory'")))
;;;###autoload
-(defun denote-sequence (type &optional sequence)
+(defun denote-sequence (type &optional file-with-sequence)
"Create a new sequence note of TYPE among `denote-sequence-types'.
If TYPE is either `child' or `sibling', then it is an extension of SEQUENCE.
-When called interactively, prompt for TYPE and, when necessary, for file
-whose SEQUENCE will be used to derive a new sequence.
-
-When called from Lisp, SEQUENCE is a string conforming with
`denote-sequence-p'."
+When called interactively, prompt for TYPE and, when necessary, for
+FILE-WITH-SEQUENCE whose sequence will be used to derive a new sequence.
+Files available at the minibuffer prompt are those returned by
+`denote-sequence-get-all-files'."
(interactive
(let ((selected-type (denote-sequence-type-prompt)))
(list
selected-type
(when (memq selected-type (delq 'parent denote-sequence-types))
- (denote-retrieve-filename-signature (denote-sequence-file-prompt))))))
- (let* ((new-sequence (denote-sequence-get type sequence))
+ (denote-sequence-file-prompt)))))
+ ;; TODO 2024-12-30: Do we need to wrap this in the following?
+ ;;
+ ;; (cl-letf (((alist-get 'signature denote-file-name-slug-functions)
#'denote-sluggify-signature))
+ (let* ((sequence (denote-retrieve-filename-signature file-with-sequence))
+ (new-sequence (denote-sequence-get type sequence))
(denote-use-signature new-sequence))
(call-interactively 'denote)))
- [elpa] externals/denote 451872b094 22/44: Make denote-sequence-get-all-sequences accept optional FILES argument, (continued)
- [elpa] externals/denote 451872b094 22/44: Make denote-sequence-get-all-sequences accept optional FILES argument, ELPA Syncer, 2025/01/01
- [elpa] externals/denote 8d130358a2 20/44: Fix some more issues with denote-sequence--get-new-child, ELPA Syncer, 2025/01/01
- [elpa] externals/denote adac55d35b 08/44: Reword denote-sequence-file-prompt prompt, ELPA Syncer, 2025/01/01
- [elpa] externals/denote 9da97d3dc2 40/44: Update copyright years in denote-test.el, ELPA Syncer, 2025/01/01
- [elpa] externals/denote 2a3436e111 39/44: Merge branch 'sequence-notes-extension', ELPA Syncer, 2025/01/01
- [elpa] externals/denote 27ef655bc8 37/44: Update copyright years in denote-sequence.el, ELPA Syncer, 2025/01/01
- [elpa] externals/denote c0bcc13ef3 26/44: Write test for denote-sequence--get-new-sibling given commit 43322b3, ELPA Syncer, 2025/01/01
- [elpa] externals/denote 80901d4604 29/44: Use denote-sequence-split in two cases, ELPA Syncer, 2025/01/01
- [elpa] externals/denote d44d3271fc 11/44: Add missing require for 'denote' in denote-sequence.el, ELPA Syncer, 2025/01/01
- [elpa] externals/denote 50bace231e 36/44: Define denote-sequence-link command, ELPA Syncer, 2025/01/01
- [elpa] externals/denote d9d2f2767f 19/44: Merge branch 'sequence-notes-extension' of github.com:protesilaos/denote into sequence-notes-extension,
ELPA Syncer <=
- [elpa] externals/denote 8000e2e01b 21/44: Fix (?) all remaining issues with denote-sequence--get-new-child, ELPA Syncer, 2025/01/01
- [elpa] externals/denote 90372d9627 38/44: Update copyright years in a few places, ELPA Syncer, 2025/01/01
- [elpa] externals/denote f293ee60df 44/44: Define denote-sequence-dired command and its helpers, ELPA Syncer, 2025/01/01
- [elpa] externals/denote 36cb4234dd 15/44: Change where 'denote-sequence' does the signature extraction, ELPA Syncer, 2025/01/01
- [elpa] externals/denote 61f5712095 31/44: Capitalise "Denote" in the defgroup of denote-sequence, ELPA Syncer, 2025/01/01
- [elpa] externals/denote 23892d55f6 16/44: Define denote-sequence-split function, ELPA Syncer, 2025/01/01
- [elpa] externals/denote 7299ed9bc0 43/44: Define denote-sequence-get-all-files-with-max-depth, ELPA Syncer, 2025/01/01
- [elpa] externals/denote b72257ad7d 28/44: Make denote-sequence--pad throw an error if the type is unknown, ELPA Syncer, 2025/01/01
- [elpa] externals/denote bb357f03bb 18/44: Make denote-sequence--get-new-child more robust, ELPA Syncer, 2025/01/01
- [elpa] externals/denote cdba50e984 33/44: Rewrite the doc string of denote-sequence-new-parent and let it work from Lisp, ELPA Syncer, 2025/01/01