emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote d94f41eda0 2/4: Fix bug with doubly sluggificati


From: ELPA Syncer
Subject: [elpa] externals/denote d94f41eda0 2/4: Fix bug with doubly sluggification of signature while renaming
Date: Fri, 1 Dec 2023 03:57:52 -0500 (EST)

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

    Fix bug with doubly sluggification of signature while renaming
---
 denote.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/denote.el b/denote.el
index 1f102ce806..287be96210 100644
--- a/denote.el
+++ b/denote.el
@@ -2445,7 +2445,7 @@ place."
          (title (or title (denote--retrieve-title-or-filename file file-type)))
          (keywords (or keywords (denote-retrieve-keywords-value file 
file-type)))
          (signature (or signature (denote-retrieve-filename-signature file)))
-         (new-name (denote-format-file-name dir id keywords (denote-sluggify 
title 'title) extension (denote-sluggify-signature signature)))
+         (new-name (denote-format-file-name dir id keywords (denote-sluggify 
title 'title) extension signature))
          (max-mini-window-height denote-rename-max-mini-window-height))
     (when (or denote-rename-no-confirm (denote-rename-file-prompt file 
new-name))
       (denote-rename-file-and-buffer file new-name)
@@ -2485,7 +2485,7 @@ the changes made to the file: perform them outright."
                              (denote-retrieve-filename-signature file)
                              (format "Rename `%s' with signature (empty to 
ignore)" file-in-prompt)))
                  (extension (denote-get-file-extension file))
-                 (new-name (denote-format-file-name dir id keywords 
(denote-sluggify title 'title) extension (denote-sluggify-signature 
signature))))
+                 (new-name (denote-format-file-name dir id keywords 
(denote-sluggify title 'title) extension signature)))
             (denote-rename-file-and-buffer file new-name)
             (when (denote-file-is-writable-and-supported-p new-name)
               (if (denote--edit-front-matter-p new-name file-type)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]