mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Simplify code of denote--sluggify-keywords
This is courtesy of Stefan Monnier: <https://lists.gnu.org/archive/html/emacs-devel/2022-07/msg00131.html>.
This commit is contained in:
parent
e24c9ddc12
commit
16867ec4f7
|
|
@ -316,9 +316,10 @@ trailing hyphen."
|
|||
|
||||
(defun denote--sluggify-keywords (keywords)
|
||||
"Sluggify KEYWORDS."
|
||||
(if denote-allow-multi-word-keywords
|
||||
(mapcar #'denote--sluggify keywords)
|
||||
(mapcar #'denote--sluggify-and-join keywords)))
|
||||
(mapcar (if denote-allow-multi-word-keywords
|
||||
#'denote--sluggify
|
||||
#'denote--sluggify-and-join)
|
||||
keywords))
|
||||
|
||||
(defun denote--file-empty-p (file)
|
||||
"Return non-nil if FILE is empty."
|
||||
|
|
|
|||
Loading…
Reference in a new issue