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

    Update denote-rename-file-using-front-matter doc
---
 denote.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index adb3489475..124878fa39 100644
--- a/denote.el
+++ b/denote.el
@@ -1373,7 +1373,13 @@ The operation does the following:
 ;;;###autoload
 (defun denote-rename-file-using-front-matter (file)
   "Rename current FILE using its front matter as input.
-The identifier of the file (if any) is never modified."
+Ask for confirmation, showing the difference between the old and
+the new file names.
+
+The identifier of the file, if any, is never modified even if it
+is edited in the front matter: Denote consider the file name to
+be the source of truth in this case, to avoid potential breakage
+with typos and the like."
   (interactive (list (buffer-file-name)))
   (when (buffer-modified-p)
     (user-error "Save buffer before proceeding"))

Reply via email to