[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 3cd4999d1c 01/10: Rename denote-sort-files-keys
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/denote 3cd4999d1c 01/10: Rename denote-sort-files-keys to denote-sort-components; change to list of symbols |
|
Date: |
Thu, 30 Nov 2023 00:57:46 -0500 (EST) |
branch: externals/denote
commit 3cd4999d1cb130d9e5a426cdf90109ffd36875cf
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Rename denote-sort-files-keys to denote-sort-components; change to list of
symbols
---
denote-sort.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/denote-sort.el b/denote-sort.el
index dc0b1b81e4..f61c585df8 100644
--- a/denote-sort.el
+++ b/denote-sort.el
@@ -45,6 +45,9 @@
(defvar denote-sort-comparison-function #'string-collate-lessp
"String comparison function used by `denote-sort-files' subroutines.")
+(defvar denote-sort-components '(title keywords signature identifier)
+ "List of sorting keys applicable for `denote-sort-files'.")
+
(defmacro denote-sort--define (component)
"Define Denote sort function for file name COMPONENT."
`(defun ,(intern (format "denote-sort-%s-lessp" component)) (file1 file2)
@@ -91,9 +94,9 @@ With optional REVERSE as a non-nil value, reverse the sort
order."
With FILES-MATCHING-REGEXP as a string limit files to those
matching the given regular expression.
-With SORT-BY-COMPONENT as a Lisp keyword, pass it to
-`denote-sort-files' to sort by the corresponding file name
-component.
+With SORT-BY-COMPONENT as a symbol among `denote-sort-components',
+pass it to `denote-sort-files' to sort by the corresponding file
+name component.
With optional REVERSE as a non-nil value, reverse the sort order."
(denote-sort-files
@@ -111,16 +114,13 @@ With optional REVERSE as a non-nil value, reverse the
sort order."
(defvar denote-sort--component-key-hist nil
"Minibuffer history of `denote-sort--component-key-prompt'.")
-(defvar denote-sort-files-keys '(:title :keywords :signature :identifier)
- "List of sorting keys applicable for `denote-sort-files'.")
-
(defun denote-sort--component-key-prompt ()
- "Prompt `denote-sort-files' for sorting key among `denote-sort-files-keys'."
+ "Prompt `denote-sort-files' for sorting key among `denote-sort-components'."
(let ((default (car denote-sort--component-key-hist)))
(intern
(completing-read
(format-prompt "Sort by file name component " default)
- denote-sort-files-keys nil :require-match
+ denote-sort-components nil :require-match
nil 'denote-sort--component-key-hist default))))
(defun denote-sort--prepare-dired (buffer-name files)
@@ -144,7 +144,7 @@ SORT-BY-COMPONENT, and REVERSE.
those matching the provided regular expression.
2. SORT-BY-COMPONENT sorts the files by their file name
- component (one among `denote-sort-files-keys').
+ component (one among `denote-sort-components').
3. REVERSE is a boolean to reverse the order when it is a non-nil value.
- [elpa] externals/denote updated (edeaaa735e -> 97f34bdc0c), ELPA Syncer, 2023/11/30
- [elpa] externals/denote cf3c2b8cbe 03/10: Change the arity of denote-sort-files to make only REVERSE be optional, ELPA Syncer, 2023/11/30
- [elpa] externals/denote 1999217a51 06/10: Make sorting work for missing components; remove the macro, ELPA Syncer, 2023/11/30
- [elpa] externals/denote 0ed067e5a8 05/10: Rename symbols for consistency; make denote-sort-component-prompt public, ELPA Syncer, 2023/11/30
- [elpa] externals/denote 97f34bdc0c 10/10: Document denote-sort.el, with 'denote-sort-dired' in particular, ELPA Syncer, 2023/11/30
- [elpa] externals/denote db31cca8fa 02/10: Clarify denote-sort-components docstring, ELPA Syncer, 2023/11/30
- [elpa] externals/denote 3cd4999d1c 01/10: Rename denote-sort-files-keys to denote-sort-components; change to list of symbols,
ELPA Syncer <=
- [elpa] externals/denote 4050bf6caf 08/10: Fix denote-org-dblock-add-files case of REVERSE without SORT-BY-COMPONENT, ELPA Syncer, 2023/11/30
- [elpa] externals/denote c98e793eef 07/10: Make 'denote-files' Org dynamic block leverage denote-sort, ELPA Syncer, 2023/11/30
- [elpa] externals/denote 1318e4175e 04/10: Tweak denote-sort-files for clarity, ELPA Syncer, 2023/11/30
- [elpa] externals/denote 59f2a61caf 09/10: Document sorting facilities for 'denote-files' Org dynamic block, ELPA Syncer, 2023/11/30