[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 8f8026bf56 11/17: Change denote and denote-org-c
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 8f8026bf56 11/17: Change denote and denote-org-capture to make them ready to handle empty identifiers |
Date: |
Sun, 10 Nov 2024 00:57:52 -0500 (EST) |
branch: externals/denote
commit 8f8026bf5629b643f05a858859148dcc58eed88a
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Change denote and denote-org-capture to make them ready to handle empty
identifiers
---
denote.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/denote.el b/denote.el
index 2d65e1761a..3f8092b670 100644
--- a/denote.el
+++ b/denote.el
@@ -2539,7 +2539,8 @@ When called from Lisp, all arguments are optional.
;; will not completely work (fontification, linking, etc.).
;; They need to be reviewed before making this available.
(date (or date (current-time)))
- (id (denote--find-first-unused-id (denote-get-identifier date)))
+ (id (denote-get-identifier date))
+ (id (if (string-empty-p id) id (denote--find-first-unused-id
id)))
(note-path (denote--prepare-note title keywords date id
directory file-type template signature)))
(denote--keywords-add-to-history keywords)
(run-hooks 'denote-after-new-note-hook)
@@ -5163,7 +5164,9 @@ Consult the manual for template samples."
(denote--creation-get-note-data-from-prompts))
(`(,title ,keywords _ ,directory ,date ,template ,signature)
(denote--creation-prepare-note-data title keywords 'org
directory date template signature))
- (id (denote--find-first-unused-id (denote-get-identifier date)))
+ (date (or date (current-time))) ; See comment in `denote'
command.
+ (id (denote-get-identifier date))
+ (id (if (string-empty-p id) id (denote--find-first-unused-id
id)))
(front-matter (denote--format-front-matter title date keywords
id signature 'org))
(template-string (cond ((stringp template) template)
((functionp template) (funcall template))
- [elpa] externals/denote 75d4ba1f7e 16/17: Do not add an empty identifier in denote--used-ids, (continued)
- [elpa] externals/denote 75d4ba1f7e 16/17: Do not add an empty identifier in denote--used-ids, ELPA Syncer, 2024/11/10
- [elpa] externals/denote 9d13ef9082 09/17: Allow identifiers with other formats in denote-format-file-name, ELPA Syncer, 2024/11/10
- [elpa] externals/denote b2ddfc0d3a 02/17: Rename denote--date to denote--format-front-matter-date, ELPA Syncer, 2024/11/10
- [elpa] externals/denote cf4ce27580 01/17: Do not check identifier format in retrieval functions of file name components, ELPA Syncer, 2024/11/10
- [elpa] externals/denote 7cd1461e4b 03/17: Add comment in denote-valid-date-p, ELPA Syncer, 2024/11/10
- [elpa] externals/denote 19164364a8 06/17: Obsolete denote-create-unique-file-identifier, ELPA Syncer, 2024/11/10
- [elpa] externals/denote a204554b8d 05/17: denote-get-identifier returns an empty string when date is nil, ELPA Syncer, 2024/11/10
- [elpa] externals/denote 89b0525475 07/17: Do not check nil identifier in denote-format-file-name, ELPA Syncer, 2024/11/10
- [elpa] externals/denote b0b19b9ad1 08/17: Allow empty identifier in denote-format-file-name, ELPA Syncer, 2024/11/10
- [elpa] externals/denote 4a2caa43ef 13/17: Handle id in denote--creation-prepare-note-data, ELPA Syncer, 2024/11/10
- [elpa] externals/denote 8f8026bf56 11/17: Change denote and denote-org-capture to make them ready to handle empty identifiers,
ELPA Syncer <=
- [elpa] externals/denote 5e21143e22 10/17: Update docstring of denote-format-file-name, ELPA Syncer, 2024/11/10
- [elpa] externals/denote 344e1a65bb 17/17: Merge pull request #476 from jeanphilippegg/date-functions, ELPA Syncer, 2024/11/10
- [elpa] externals/denote 722c1f3934 14/17: Add variable denote-generate-identifier-automatically, ELPA Syncer, 2024/11/10
- [elpa] externals/denote 8b005edd2d 12/17: Make some front matter functions ready to handle nil dates and empty identifiers, ELPA Syncer, 2024/11/10
- [elpa] externals/denote 427ebfed8e 15/17: Add date parameter to denote--add-front-matter, ELPA Syncer, 2024/11/10