[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 9be3cfab99 215/355: Relocate defcustom where it
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 9be3cfab99 215/355: Relocate defcustom where it belongs |
Date: |
Sun, 26 Jun 2022 23:58:26 -0400 (EDT) |
branch: externals/denote
commit 9be3cfab9973c7a24f3d252bd17c6aeb76d04cfb
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Relocate defcustom where it belongs
---
denote-dired.el | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/denote-dired.el b/denote-dired.el
index 9619a49bce..e5246ef049 100644
--- a/denote-dired.el
+++ b/denote-dired.el
@@ -85,22 +85,6 @@ old name followed by the new one."
:type 'boolean
:group 'denote-dired)
-;;;; Commands
-
-(defun denote-dired--file-attributes-time (file)
- "Return `file-attribute-modification-time' of FILE as identifier."
- (format-time-string
- denote--id-format
- (file-attribute-modification-time (file-attributes file))))
-
-(defun denote-dired--file-name-id (file)
- "Return FILE identifier, else generate one."
- (cond
- ((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-format))))
-
(defcustom denote-dired-post-rename-functions
(list #'denote-dired-rewrite-front-matter)
"List of functions called after `denote-dired-rename-file'.
@@ -121,6 +105,22 @@ everything works as intended."
:type 'hook
:group 'denote-dired)
+;;;; Commands
+
+(defun denote-dired--file-attributes-time (file)
+ "Return `file-attribute-modification-time' of FILE as identifier."
+ (format-time-string
+ denote--id-format
+ (file-attribute-modification-time (file-attributes file))))
+
+(defun denote-dired--file-name-id (file)
+ "Return FILE identifier, else generate one."
+ (cond
+ ((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-format))))
+
;;;###autoload
(defun denote-dired-rename-file (file title keywords)
"Rename FILE to include TITLE and KEYWORDS.
- [elpa] externals/denote 1b5634ba1c 324/355: Clarify that xrefs are returned as an alist, (continued)
- [elpa] externals/denote 1b5634ba1c 324/355: Clarify that xrefs are returned as an alist, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 6985217de6 350/355: Set denote-link-use-org-id to t in sample config, ELPA Syncer, 2022/06/27
- [elpa] externals/denote d6543cfa0d 333/355: Add support for org-id, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 72f77178af 344/355: Refine denote-link-use-org-id doc string, ELPA Syncer, 2022/06/27
- [elpa] externals/denote f307e32693 011/355: Expand the README, ELPA Syncer, 2022/06/27
- [elpa] externals/denote bfb2cdefd7 195/355: Rewrite manual on links (getting closer to v0.1.0), ELPA Syncer, 2022/06/27
- [elpa] externals/denote e37e429844 198/355: Add possible to-do for using xref, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 2327b5beb6 212/355: Add helper FNs to return title and date values, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 98113698a7 202/355: Expand sample configuration, ELPA Syncer, 2022/06/27
- [elpa] externals/denote cbaab43170 240/355: Update Acknowledgement: svnsbck => Sven Seebeck, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 9be3cfab99 215/355: Relocate defcustom where it belongs,
ELPA Syncer <=
- [elpa] externals/denote b25704e041 211/355: Make denote-retrieve--value pass optional group, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 24997c6bc5 226/355: Remove "work-in-progress" from backlinks' section, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 25fe9870dc 225/355: Finalise 'denote:' custom Org hyperlink type, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 13bae5f9c4 235/355: Remove instability warnings (v0.1.0 is close), ELPA Syncer, 2022/06/27
- [elpa] externals/denote 1b4dc74e3c 224/355: Update denote-dired.el Commentary section, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 3a63c763c5 218/355: Improve post-rename front matter rewrite, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 5213c9e7af 241/355: Add section with alternatives to Denote, ELPA Syncer, 2022/06/27
- [elpa] externals/denote e0ff114a93 238/355: Update Denote sources in manual's introduction, ELPA Syncer, 2022/06/27
- [elpa] externals/denote 7ce2f7d3e3 251/355: Use the 'denote-directory' function, not variable, ELPA Syncer, 2022/06/27
- [elpa] externals/denote c8f3e707c2 223/355: Revise one-line descriptions, where needed, ELPA Syncer, 2022/06/27