~protesilaos/denote

378873e83ad2a1249c418a30ae97944106157b8b — Protesilaos Stavrou 2 months ago f1a942f
Make denote--keywords-add-to-history work only on a list
1 files changed, 5 insertions(+), 3 deletions(-)

M denote.el
M denote.el => denote.el +5 -3
@@ 1043,9 1043,11 @@ Denote file-naming scheme."

(defun denote--keywords-add-to-history (keywords)
  "Append KEYWORDS to `denote--keyword-history'."
  (mapc (lambda (kw)
          (add-to-history 'denote--keyword-history kw))
        (delete-dups keywords)))
  (when (listp keywords)
    (mapc
     (lambda (kw)
       (add-to-history 'denote--keyword-history kw))
     (delete-dups keywords))))

;;;; File types