branch: externals/denote
commit e89833d453b40f16f8f93473ca63a77234727b8d
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Make denote-keywords-add always sort keywords
    
    This is a continuation of commits bbd0b79, 877e205.
    
    The regression was caused by a59a711, 392ddc0.
---
 denote.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index c59ca18217..b96cfb18b8 100644
--- a/denote.el
+++ b/denote.el
@@ -1727,7 +1727,8 @@ the new front matter, per 
`denote-rename-file-using-front-matter'."
              (new-keywords (if (and (stringp cur-keywords)
                                     (string-blank-p cur-keywords))
                                keywords
-                             (seq-uniq (append keywords cur-keywords)))))
+                             (denote-keywords-sort
+                              (seq-uniq (append keywords cur-keywords))))))
         (denote--rewrite-keywords file new-keywords file-type)
         (denote-rename-file-using-front-matter file t))
     (user-error "Buffer not visiting a Denote file")))

Reply via email to