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

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

[elpa] externals/denote e394dc7922 1/2: Return new name in denote-rename


From: ELPA Syncer
Subject: [elpa] externals/denote e394dc7922 1/2: Return new name in denote-rename-file
Date: Sat, 4 Nov 2023 03:57:48 -0400 (EDT)

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

    Return new name in denote-rename-file
    
    This can be used programmatically. Thanks to mentalisttraceur for
    reuesting this feature in issue 183 on the GitHub mirror:
    <https://github.com/protesilaos/denote/issues/183>.
---
 README.org | 2 +-
 denote.el  | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index 63a8a56ede..836a9551b1 100644
--- a/README.org
+++ b/README.org
@@ -4782,7 +4782,7 @@ Denote is meant to be a collective effort.  Every bit of 
help matters.
   Meyer, Marc Fargas, Matthew Lemon, Noboru Ota (nobiot), Norwid
   Behrnd, Peter Prevos, Philip Kaludercic, Quiliro Ordóñez, Stefan
   Monnier, Stefan Thesing, Thibaut Benjamin, Tomasz Hołubowicz, Vedang
-  Manerikar, ezchi, relict007.
+  Manerikar, ezchi, mentalisttraceur, relict007.
 
 + Ideas and/or user feedback :: Abin Simon, Aditya Yadav, Alan
   Schmitt, Alfredo Borrás, Ashton Wiersdorf, Benjamin Kästner, Colin
diff --git a/denote.el b/denote.el
index 6719c1d58e..19bdb5bf76 100644
--- a/denote.el
+++ b/denote.el
@@ -2443,7 +2443,8 @@ place."
       (when (denote-file-is-writable-and-supported-p new-name)
         (if (denote--edit-front-matter-p new-name file-type)
             (denote-rewrite-front-matter new-name title keywords file-type 
denote-rename-no-confirm)
-          (denote--add-front-matter new-name title keywords id file-type))))))
+          (denote--add-front-matter new-name title keywords id file-type))))
+    new-name))
 
 ;;;###autoload
 (defun denote-dired-rename-files ()



reply via email to

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