[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote cb863db07d 25/39: Change order of arguments in '
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote cb863db07d 25/39: Change order of arguments in 'denote' |
Date: |
Mon, 11 Jul 2022 00:57:45 -0400 (EDT) |
branch: externals/denote
commit cb863db07dc276ccedd19143da7b5baa3d84607e
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Change order of arguments in 'denote'
This was discussed with Jean-Philippe Gagné Guay in issue 41 over at the
GitHub mirror: <https://github.com/protesilaos/denote/issues/41>.
---
denote.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/denote.el b/denote.el
index f43361f73a..0da604f8ac 100644
--- a/denote.el
+++ b/denote.el
@@ -713,7 +713,7 @@ Optional DEFAULT-TITLE is used as the default value."
;;;;; The `denote' command
;;;###autoload
-(defun denote (&optional title keywords file-type date subdirectory)
+(defun denote (&optional title keywords file-type subdirectory date)
"Create a new note with the appropriate metadata and file name.
When called interactively, the metadata and file name are prompted
@@ -729,13 +729,13 @@ When called from Lisp, all arguments are optional.
- FILE-TYPE is a symbol among those described in `denote-file-type'.
-- DATE is a string representing a date like 2022-06-30 or a date
- and time like 2022-06-16 14:30. A nil value or an empty string
- is interpreted as the `current-time'.
-
- SUBDIRECTORY is a string representing the path to either the value of
the variable `denote-directory' or a subdirectory thereof. The
- subdirectory must exist: Denote will not create it."
+ subdirectory must exist: Denote will not create it.
+
+- DATE is a string representing a date like 2022-06-30 or a date
+ and time like 2022-06-16 14:30. A nil value or an empty string
+ is interpreted as the `current-time'."
(interactive
(let ((args (make-vector 5 nil)))
(dolist (prompt denote-prompts)
@@ -743,8 +743,8 @@ When called from Lisp, all arguments are optional.
('title (aset args 0 (denote--title-prompt)))
('keywords (aset args 1 (denote--keywords-prompt)))
('file-type (aset args 2 (denote--file-type-prompt)))
- ('date (aset args 3 (denote--date-prompt)))
- ('subdirectory (aset args 4 (denote--subdirs-prompt)))))
+ ('subdirectory (aset args 4 (denote--subdirs-prompt)))
+ ('date (aset args 3 (denote--date-prompt)))))
(append args nil)))
(let* ((denote-file-type (denote--file-type-symbol (or file-type
denote-file-type)))
(date (if (or (null date) (string-empty-p date))
- [elpa] externals/denote updated (934c8c362f -> 089b0bea0e), ELPA Syncer, 2022/07/11
- [elpa] externals/denote 81e756b118 08/39: Clarify in denote-prompts that subdir must exist, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 9b981a2958 01/39: Add denote-prompts option and refactor the denote command, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 335307382f 03/39: Add internal constant for denote-prompts symbols, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 95feac8448 12/39: Clarify a TODO, ELPA Syncer, 2022/07/11
- [elpa] externals/denote b94537cd94 14/39: Remove else part in denote--file-name-relative-to-denote-directory, ELPA Syncer, 2022/07/11
- [elpa] externals/denote a285d4df6a 23/39: Merge pull request #42 from jeanphilippegg/refactor-denote-prompts, ELPA Syncer, 2022/07/11
- [elpa] externals/denote bfda1b829f 06/39: Make 'denote' use 'denote--prompts', ELPA Syncer, 2022/07/11
- [elpa] externals/denote f4c3f1c2d5 18/39: Expand denote-prompts doc string, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 71b56a6b0f 22/39: Refine interactive spec of 'denote' command, ELPA Syncer, 2022/07/11
- [elpa] externals/denote cb863db07d 25/39: Change order of arguments in 'denote',
ELPA Syncer <=
- [elpa] externals/denote 61f48726b0 07/39: Clarify denote-prompts empty title case, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 7c36c51665 09/39: Update doc string of 'denote' command, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 60915b3104 33/39: Merge branch 'refactor-denote-prompts', ELPA Syncer, 2022/07/11
- [elpa] externals/denote fcd182f0ff 36/39: Add 'denote-directory' Info link to silos, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 218f7132bf 15/39: Remove private denote--prompts function, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 10e815c3fe 17/39: Refine denote-prompts Custom UI type, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 92e15886d5 20/39: Avoid errors with string value for keywords, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 5761ec5f89 34/39: BREAKING update journal samples for current 'denote', ELPA Syncer, 2022/07/11
- [elpa] externals/denote b05ea22a11 05/39: Add private function to normalise denote-prompts, ELPA Syncer, 2022/07/11
- [elpa] externals/denote d8ae24a80f 13/39: Merge branch 'main' into refactor-denote-prompts, ELPA Syncer, 2022/07/11