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>.
This commit is contained in:
Protesilaos Stavrou 2024-01-25 06:52:05 +02:00
parent 1bd8e36f2f
commit fa5548f766
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -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)))