[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 02a1645f95 21/33: Tweak the behaviour of denote-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 02a1645f95 21/33: Tweak the behaviour of denote-create-unique-file-identifier |
Date: |
Wed, 14 Feb 2024 06:57:48 -0500 (EST) |
branch: externals/denote
commit 02a1645f95d8be008f548312419525ffdc242552
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Tweak the behaviour of denote-create-unique-file-identifier
---
denote.el | 19 ++++++-------------
1 file changed, 6 insertions(+), 13 deletions(-)
diff --git a/denote.el b/denote.el
index 8dec4e4304..9752c8aaa0 100644
--- a/denote.el
+++ b/denote.el
@@ -1544,8 +1544,9 @@ current time."
The conditions are as follows:
-- If optional DATE conforms with `denote-valid-date-p', use it
- as-is to get an identifier from it with `denote-get-identifier'.
+- If optional DATE is non-nil pass it to `denote-get-identifier'.
+ DATE will have to conform with `denote-valid-date-p'. If it
+ does not, return an error.
- If optional DATE is nil, use the file attributes to determine
the last modified date and format it as an identifier.
@@ -1554,18 +1555,10 @@ The conditions are as follows:
To only return an existing identifier, refer to the function
`denote-retrieve-filename-identifier'."
- ;; TODO 2024-02-11: Maybe we can use `denote-parse-date' here to
- ;; simplify this?
(let ((id (cond
- ((denote-valid-date-p date) (denote-get-identifier date))
- ;; FIXME 2024-02-11: Under which condition do we want
- ;; this to happen? I am using this is not needed, but
- ;; keeping it here while we are still developing the new
- ;; version 3.0.0.
- ;;
- ;; (date (denote-prompt-for-date-return-id))
- ((denote--file-attributes-time file))
- (t (denote-get-identifier)))))
+ (date (denote-get-identifier date))
+ ((denote--file-attributes-time file))
+ (t (denote-get-identifier)))))
(denote--find-first-unused-id id used-ids)))
(define-obsolete-function-alias
- [elpa] externals/denote 1cdb49e227 32/33: Merge branch 'rename-honours-denote-prompts' of github.com:protesilaos/denote into rename-honours-denote-prompts, (continued)
- [elpa] externals/denote 1cdb49e227 32/33: Merge branch 'rename-honours-denote-prompts' of github.com:protesilaos/denote into rename-honours-denote-prompts, ELPA Syncer, 2024/02/14
- [elpa] externals/denote ab04f5b774 04/33: Fix typo in variable name in documentation, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 60cf6b6125 05/33: Acknowledge maxbrieiev for commit 7d18b7b, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 16b48265e2 08/33: Change how denote-rename-file passes DATE to denote-create-unique-file-identifier (per e9e9c8e), ELPA Syncer, 2024/02/14
- [elpa] externals/denote 5d4c78361a 10/33: Fix typo in denote-rename-file doc string, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 6e050e4268 11/33: Start updating the manual for denote-rename-file (WORK-IN-PROGRESS), ELPA Syncer, 2024/02/14
- [elpa] externals/denote 6179fb7541 14/33: Ensure double spacing in a sentence of denote-rename-file docstring, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 8e18c5664d 18/33: Add WORK-IN-PROGRESS implementation of 'denote-rename-file' that honours 'denote-prompts', ELPA Syncer, 2024/02/14
- [elpa] externals/denote 96d432f746 19/33: Update denote-create-* commands to respect `denote-prompts`, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 779dfb0439 20/33: Update denote-rename-file doc string to describe its current behaviour, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 02a1645f95 21/33: Tweak the behaviour of denote-create-unique-file-identifier,
ELPA Syncer <=
- [elpa] externals/denote 7f76d52e80 27/33: Complete the documentation of denote-rename-file, noting all modalities of interaction, ELPA Syncer, 2024/02/14
- [elpa] externals/denote a1e1e21251 24/33: Fix typo in denote-rename-file doc string, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 453b241d58 29/33: Make denote-dired-rename-files honour the denote-prompts (same as denote-rename-file), ELPA Syncer, 2024/02/14
- [elpa] externals/denote cd109c1e8c 30/33: Update the documentation of denote-dired-rename-marked-files, ELPA Syncer, 2024/02/14
- [elpa] externals/denote ecd18be7a4 28/33: Ensure double spacing in a sentence of denote-rename-file docstring, ELPA Syncer, 2024/02/14
- [elpa] externals/denote 1d6ea5a6d9 33/33: Add the denote-rename-no-confirm to the sample configuration, ELPA Syncer, 2024/02/14