[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote-menu d8121e610c 09/15: Make 'list-denotes' alias
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote-menu d8121e610c 09/15: Make 'list-denotes' alias of 'denote-menu-list-notes' |
Date: |
Thu, 9 Mar 2023 11:00:07 -0500 (EST) |
branch: externals/denote-menu
commit d8121e610c3393daa9c5a849e182b674ec55da80
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make 'list-denotes' alias of 'denote-menu-list-notes'
We do this for two reasons:
1. The prefix "denote-menu-" gives the symbol a pseudo namespace and
we thus avoid potential conflicts between different packages.
2. The presence of a command with a more descriptive name improves
discoverability.
I am also adding the autoload cookie. This is used for all "points of
entry" to a package.
---
denote-menu.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/denote-menu.el b/denote-menu.el
index 21326d3384..fcf1bf60d8 100644
--- a/denote-menu.el
+++ b/denote-menu.el
@@ -64,7 +64,8 @@ matching denote files."
(defvar denote-menu-current-regex denote-menu-initial-regex
"The current regex used to match denote filenames.")
-(defun list-denotes ()
+;;;###autoload
+(defun denote-menu-list-notes ()
"Displays a list of the denote files located in
`denote-directory'."
(interactive)
@@ -76,6 +77,9 @@ matching denote files."
(pop-to-buffer-same-window buffer)))
+(defalias 'denote-menu-list-notes 'list-denotes
+ "Alias of `denote-menu-list-notes' command.")
+
(defun denote-menu-update-entries ()
"Sets `tabulated-list-entries' to a function that maps currently
displayed denote file names
- [elpa] branch externals/denote-menu created (now c9cb089bfa), ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 05d6d38ee1 02/15: README, screenshots, and fixes, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 52ebd5eae4 04/15: fix custom filter example, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 7ca56a3cfe 05/15: remove copyright and screenshot, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu aa92fc2f98 06/15: fix screenshot, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu d8121e610c 09/15: Make 'list-denotes' alias of 'denote-menu-list-notes',
ELPA Syncer <=
- [elpa] externals/denote-menu f901a2dba5 08/15: fix denote get path by id, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 5bc393e6d2 03/15: README typo, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 8a490728de 10/15: Change tone of doc strings, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu f73afbdacb 13/15: fix list-denotes alias and typo in README, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 3bd7cf7d12 01/15: initial commit, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 6a2cde289b 07/15: add denote requirement, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu 4a1bbb38f8 11/15: remove all occurences of `denote-get-path-by-id', ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu b3c33b9fd3 12/15: Merge pull request #1 from protesilaos/master, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu ec8349a77a 14/15: added commentary, ELPA Syncer, 2023/03/09
- [elpa] externals/denote-menu c9cb089bfa 15/15: added new user option and unique ids taking file type, ELPA Syncer, 2023/03/09