branch: externals/denote commit afb4a9807e867a6b1177958e38646044df3ba8f6 Author: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com> Commit: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com>
Revert "Make optional the parameters of denote-generate-identifier-as-{date,number}" This reverts commit 9549d977d5173243f5f25ccdf5051c9aa9d613ad. --- denote.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/denote.el b/denote.el index f6389cfc4f..284fa08d92 100644 --- a/denote.el +++ b/denote.el @@ -2896,7 +2896,7 @@ available id is found." (time-add (date-to-time current-id) 1)))) current-id)) -(defun denote-generate-identifier-as-date (&optional initial-identifier date) +(defun denote-generate-identifier-as-date (initial-identifier date) "Generate an identifier based on DATE. If INITIAL-IDENTIFIER is not already used, return it. Else, if it is @@ -2930,7 +2930,7 @@ If ID is already used, increment it until an available id is found." (setq current-id (number-to-string (1+ (string-to-number current-id))))) current-id)) -(defun denote-generate-identifier-as-number (&optional initial-identifier _date) +(defun denote-generate-identifier-as-number (initial-identifier _date) "Generate an increasing number identifier. If INITIAL-IDENTIFIER is not already used, return it. Else, if it is