branch: externals/denote commit 3785194e0ed960511b442367848ce9ca4a92613a Merge: 5d8738f4bb 272e939417 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Merge branch 'main' of github.com:protesilaos/denote --- denote.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/denote.el b/denote.el index 2b77bc1c4e..e3a4a14a60 100644 --- a/denote.el +++ b/denote.el @@ -4077,7 +4077,7 @@ Respect `denote-rename-confirmations', `denote-save-buffers' and identifier)) (identifier (cond ((string-empty-p identifier) identifier) ((string= old-identifier identifier) identifier) - ((denote--file-has-backlinks-p file) + ((and (not (string-empty-p old-identifier)) (denote--file-has-backlinks-p file)) (user-error "The identifier cannot be modified because the new identifier has backlinks")) (t (funcall denote-get-identifier-function identifier nil)))) (new-name (denote-format-file-name directory identifier keywords title extension signature))