branch: externals/denote
commit 77d65716fdcf7013a4e41c391879465e27905fba
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Add conditionality in keyword to list conversion
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 88d9be3545..68b20b1da8 100644
--- a/denote.el
+++ b/denote.el
@@ -687,7 +687,7 @@ Apply `downcase' to KEYWORDS."
 (defun denote--front-matter-keywords-to-list (file)
   "Return keywords from front matter of FILE as list of strings.
 This is the reverse operation of `denote--format-front-matter-keywords'."
-  (let ((keywords (denote--retrieve-value-keywords file)))
+  (when-let ((keywords (denote--retrieve-value-keywords file)))
     (split-string keywords "[:,\s]+" t "[][ \"']+")))
 
 ;; TODO 2022-08-10: These are `defvar' and not `defcustom' because

Reply via email to