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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote fa5548f766 4/6: Make silo commands not require s


From: ELPA Syncer
Subject: [elpa] externals/denote fa5548f766 4/6: Make silo commands not require superfluous prefix argument
Date: Thu, 25 Jan 2024 00:57:44 -0500 (EST)

branch: externals/denote
commit fa5548f7665701e732d8633d6809afbca01daff9
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Make silo commands not require superfluous prefix argument
    
    This was a mistake. The intent was to run those commands without a
    prefix argument.
    
    Thanks to l-o-l-h for mentioning this in issue 216:
    <https://github.com/protesilaos/denote/issues/216>.
---
 denote-silo-extras.el | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/denote-silo-extras.el b/denote-silo-extras.el
index 367e1eb749..31ef6460e8 100644
--- a/denote-silo-extras.el
+++ b/denote-silo-extras.el
@@ -65,24 +65,18 @@ as the variable `denote-directory'."
      nil 'denote-silo-extras-directory-history)))
 
 ;;;###autoload
-(defun denote-silo-extras-create-note (&optional silo)
+(defun denote-silo-extras-create-note (silo)
   "Select SILO and run `denote' in it.
 SILO is a file path from `denote-silo-extras-directories'."
-  (interactive
-   (list
-    (when current-prefix-arg
-      (denote-silo-extras--directory-prompt))))
+  (interactive (list (denote-silo-extras--directory-prompt)))
   (let ((denote-user-enforced-denote-directory silo))
     (call-interactively #'denote)))
 
 ;;;###autoload
-(defun denote-silo-extras-open-or-create (&optional silo)
+(defun denote-silo-extras-open-or-create (silo)
   "Select SILO and run `denote-open-or-create' in it.
 SILO is a file path from `denote-silo-extras-directories'."
-  (interactive
-   (list
-    (when current-prefix-arg
-      (denote-silo-extras--directory-prompt))))
+  (interactive (list (denote-silo-extras--directory-prompt)))
   (let ((denote-user-enforced-denote-directory silo))
     (call-interactively #'denote-open-or-create)))
 



reply via email to

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