emacs-elpa-diffs
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]