Function: denote-rename-file-prompt
denote-rename-file-prompt is a byte-compiled function defined in
denote.el.
Signature
(denote-rename-file-prompt OLD-NAME NEW-NAME)
Documentation
Prompt to rename file named OLD-NAME to NEW-NAME.
Return non-nil if the file should be renamed.
If denote-rename-confirmations does not contain
modify-file-name, return t without prompting.
Source Code
;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-rename-file-prompt (old-name new-name)
"Prompt to rename file named OLD-NAME to NEW-NAME.
Return non-nil if the file should be renamed.
If `denote-rename-confirmations' does not contain
`modify-file-name', return t without prompting."
(or (not (memq 'modify-file-name denote-rename-confirmations))
(unless (string= (expand-file-name old-name) (expand-file-name new-name))
(y-or-n-p
(format "Rename %s to %s?"
(propertize (file-name-nondirectory old-name) 'face 'denote-faces-prompt-old-name)
(propertize (file-name-nondirectory new-name) 'face 'denote-faces-prompt-new-name))))))