[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 583e567f65 4/8: Throw an error if denote-sluggif
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 583e567f65 4/8: Throw an error if denote-sluggify-keywords does not get a list of strings |
Date: |
Mon, 22 May 2023 15:57:59 -0400 (EDT) |
branch: externals/denote
commit 583e567f65896308c2975ebba41e325c95aefb04
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Throw an error if denote-sluggify-keywords does not get a list of strings
---
denote.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/denote.el b/denote.el
index d8e550d978..c8d169f86d 100644
--- a/denote.el
+++ b/denote.el
@@ -594,10 +594,13 @@ any leading and trailing signs."
(defun denote-sluggify-keywords (keywords)
"Sluggify KEYWORDS, which is a list of strings."
- (mapcar (if denote-allow-multi-word-keywords
- #'denote-sluggify
- #'denote-sluggify-and-join)
- keywords))
+ (if (listp keywords)
+ (mapcar
+ (if denote-allow-multi-word-keywords
+ #'denote-sluggify
+ #'denote-sluggify-and-join)
+ keywords)
+ (error "`%s' is not a list" keywords)))
(define-obsolete-function-alias
'denote--sluggify-keywords
- [elpa] externals/denote updated (4b3ba57386 -> 73dfc1f1bc), ELPA Syncer, 2023/05/22
- [elpa] externals/denote 6837f8df06 1/8: Make the creation of 'denote-directory' its own function, ELPA Syncer, 2023/05/22
- [elpa] externals/denote b054600d84 2/8: BREAKING: change default value of 'denote-allow-multi-word-keywords', ELPA Syncer, 2023/05/22
- [elpa] externals/denote 5dc40e40e4 5/8: Fix typo in doc string, ELPA Syncer, 2023/05/22
- [elpa] externals/denote 583e567f65 4/8: Throw an error if denote-sluggify-keywords does not get a list of strings,
ELPA Syncer <=
- [elpa] externals/denote 6f99ba8ab5 6/8: Revise docs of two deprecations to mention current development release version, ELPA Syncer, 2023/05/22
- [elpa] externals/denote 2c377d4af8 3/8: Clarify 'denote--slug-no-punct' doc string, ELPA Syncer, 2023/05/22
- [elpa] externals/denote af2f2c0831 7/8: Clarify doc string of 'denote-desluggify'; add TODO for more, ELPA Syncer, 2023/05/22
- [elpa] externals/denote 73dfc1f1bc 8/8: Write some unit tests (WORK-IN-PROGRESS), ELPA Syncer, 2023/05/22