[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote fc9f909061 179/355: Change denote--id to denote-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote fc9f909061 179/355: Change denote--id to denote--id-format |
Date: |
Sun, 26 Jun 2022 23:58:21 -0400 (EDT) |
branch: externals/denote
commit fc9f9090611060772d4f68fa23db807d0a15a59c
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Change denote--id to denote--id-format
It is important for clarity, otherwise I keep getting confused.
---
denote-dired.el | 4 ++--
denote.el | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/denote-dired.el b/denote-dired.el
index cee702cff7..b9ef8f766f 100644
--- a/denote-dired.el
+++ b/denote-dired.el
@@ -90,7 +90,7 @@ old name followed by the new one."
(defun denote-dired--file-attributes-time (file)
"Return `file-attribute-modification-time' of FILE as identifier."
(format-time-string
- denote--id
+ denote--id-format
(file-attribute-modification-time (file-attributes file))))
(defun denote-dired--file-name-id (file)
@@ -99,7 +99,7 @@ old name followed by the new one."
((string-match denote--id-regexp file)
(substring file (match-beginning 0) (match-end 0)))
((denote-dired--file-attributes-time file))
- (t (format-time-string denote--id))))
+ (t (format-time-string denote--id-format))))
;;;###autoload
(defun denote-dired-rename-file (file title keywords)
diff --git a/denote.el b/denote.el
index b808d19b53..2db4192fb9 100644
--- a/denote.el
+++ b/denote.el
@@ -195,11 +195,11 @@ is suspended: we use whatever the user wants."
;;;; Main variables
-(defconst denote--id "%Y%m%dT%H%M%S"
+(defconst denote--id-format "%Y%m%dT%H%M%S"
"Format of ID prefix of a note's filename.")
(defconst denote--id-regexp "\\([0-9]\\{8\\}\\)\\(T[0-9]\\{6\\}\\)"
- "Regular expression to match `denote--id'.")
+ "Regular expression to match `denote--id-format'.")
(defconst denote--file-title-regexp
(concat denote--id-regexp "\\(--\\)\\(.*\\)\\(__\\)")
@@ -491,7 +491,7 @@ With optional ID, use it else format the current time."
(setq denote-last-path
(denote--format-file
(or dir (file-name-as-directory denote-directory))
- (or id (format-time-string denote--id))
+ (or id (format-time-string denote--id-format))
(denote--sluggify-keywords keywords)
(denote--sluggify title)
(denote--file-extension))))
@@ -533,7 +533,7 @@ Use optional PATH, else create it with `denote--path'."
(buffer (unless path (find-file p)))
(header (denote--file-meta-header
title (denote--date) keywords
- (format-time-string denote--id))))
+ (format-time-string denote--id-format))))
(unless path
(with-current-buffer buffer (insert header))
(setq denote-last-buffer buffer))
- [elpa] externals/denote d4cbb974a5 157/355: Rewrite node on multi file types (due to b42f68c), (continued)
- [elpa] externals/denote d4cbb974a5 157/355: Rewrite node on multi file types (due to b42f68c), ELPA Syncer, 2022/06/27
- [elpa] externals/denote 479899d973 162/355: Clarify wording about journal/diary extras, ELPA Syncer, 2022/06/27
- [elpa] externals/denote e9bc790675 167/355: Clarify that auto-backlinks may be removed, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 4bc7aa4dfd 166/355: Remove outdated doc string from private function, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d9f439e47f 173/355: Add helper function to prepare completion table, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 91090d42c6 180/355: Fix regexp match for backlinks, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 768372281f 177/355: Fix formatting typo, ELPA Syncer, 2022/06/27
- [elpa] externals/denote a47f32ec71 184/355: Implement new backlink facility, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 7674c6f854 170/355: Retrieve identifier from filename alone, ELPA Syncer, 2022/06/27
- [elpa] externals/denote e783662363 159/355: Tweak sample configuration, ELPA Syncer, 2022/06/27
- [elpa] externals/denote fc9f909061 179/355: Change denote--id to denote--id-format,
ELPA Syncer <=
- [elpa] externals/denote 4a5ba1603a 190/355: Document how to write metanotes, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 92a4ff20b6 192/355: Remove obsolete description from doc string, ELPA Syncer, 2022/06/27
- [elpa] externals/denote ebd14ebbd6 187/355: Change placement of maxdepth argument for find, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 979bf352d6 208/355: Clarify requirements for good front matter value, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 0db5be04be 213/355: Use new helper FN for title value in links, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 31fc567702 209/355: Accept optional filetype in front matter formatter, ELPA Syncer, 2022/06/27
- [elpa] externals/denote b64cc491bc 199/355: Add history to denote-link-add-links command, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 4041e437b2 214/355: Add PROTOTYPE of front matter rewrite post-rename, ELPA Syncer, 2022/06/27
- [elpa] externals/denote f4e7cc9ab4 222/355: Document denote-dired-post-rename-functions, ELPA Syncer, 2022/06/27
- [elpa] externals/denote edbd2f7f1b 270/355: Use our pred instead of generic in file filtering, ELPA Syncer, 2022/06/27