[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote df40fc5484 1/2: Reword denote-rename-file-using-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote df40fc5484 1/2: Reword denote-rename-file-using-front-matter docstring |
Date: |
Wed, 12 Oct 2022 00:57:38 -0400 (EDT) |
branch: externals/denote
commit df40fc54843f69bf5fb1039be64dd3291dbb9a45
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Reword denote-rename-file-using-front-matter docstring
---
denote.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/denote.el b/denote.el
index 1cbba9ef6b..816fc3cbf2 100644
--- a/denote.el
+++ b/denote.el
@@ -1893,15 +1893,19 @@ function `buffer-file-name' which is subsequently
inspected for
the requisite front matter. It is thus implied that the FILE has
a file type that is supported by Denote, per `denote-file-type'.
-Unless AUTO-CONFIRM is non-nil, ask for confirmation, showing the
-difference between the old and the new file names. Refrain from
-performing the operation if the buffer has unsaved changes,
-unless AUTO-CONFIRM is non-nil: then save the buffer first.
+Unless AUTO-CONFIRM is non-nil (such as with a prefix argument),
+ask for confirmation, showing the difference between the old and
+the new file names.
Never modify the identifier of the FILE, if any, even if it is
edited in the front matter. Denote considers the file name to be
the source of truth in this case to avoid potential breakage with
-typos and the like."
+typos and the like.
+
+Refrain from performing the operation if the buffer has unsaved
+changes. Inform the user about the need to save their changes
+first. If AUTO-CONFIRM is non-nil, then save the buffer and
+proceed with the renaming."
(interactive (list (buffer-file-name) current-prefix-arg))
(when (buffer-modified-p)
(if (or auto-confirm