[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 92e15886d5 20/39: Avoid errors with string value
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 92e15886d5 20/39: Avoid errors with string value for keywords |
Date: |
Mon, 11 Jul 2022 00:57:45 -0400 (EDT) |
branch: externals/denote
commit 92e15886d51925711b64042b772078809d4828d6
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Avoid errors with string value for keywords
This is done in order not to break user-level custom code, such as what
we had in the manual:
(defun prot/denote-journal ()
"Create an entry tagged 'journal', while prompting for a title."
(interactive)
(denote
(denote--title-prompt)
"journal"))
---
denote.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/denote.el b/denote.el
index 8a068fabd7..15d613b204 100644
--- a/denote.el
+++ b/denote.el
@@ -370,10 +370,11 @@ trailing hyphen."
(defun denote--sluggify-keywords (keywords)
"Sluggify KEYWORDS."
- (mapcar (if denote-allow-multi-word-keywords
- #'denote--sluggify
- #'denote--sluggify-and-join)
- keywords))
+ (let ((kws (if (listp keywords) keywords (list keywords))))
+ (mapcar (if denote-allow-multi-word-keywords
+ #'denote--sluggify
+ #'denote--sluggify-and-join)
+ kws)))
(defun denote--file-empty-p (file)
"Return non-nil if FILE is empty."
- [elpa] externals/denote bfda1b829f 06/39: Make 'denote' use 'denote--prompts', (continued)
- [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, 2022/07/11
- [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 <=
- [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
- [elpa] externals/denote 8ea2a7b65d 30/39: Tweak denote-prompts doc string, ELPA Syncer, 2022/07/11
- [elpa] externals/denote d1a3fe3989 31/39: Revise manual on note creation; add denote-prompts, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 2c0727eb37 32/39: Add :link to manual in 'denote-prompts' definition, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 9cdd77d425 10/39: Add TODO for 'denote' command Lisp arguments, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 258ddc7b2c 02/39: Update denote-prompts doc string, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 0326ab3d75 04/39: Add TODO for denote-prompts value, ELPA Syncer, 2022/07/11
- [elpa] externals/denote 05e70d4e5c 11/39: Update doc strings of convenience commands, ELPA Syncer, 2022/07/11