[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 242b532bde 2/3: denote-rename-buffer.el: check i
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote 242b532bde 2/3: denote-rename-buffer.el: check if file exists before renaming its buffer |
Date: |
Mon, 26 Jun 2023 09:58:10 -0400 (EDT) |
branch: externals/denote
commit 242b532bde614ec19ac82ba60098ab05dd263fde
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
denote-rename-buffer.el: check if file exists before renaming its buffer
---
denote-rename-buffer.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/denote-rename-buffer.el b/denote-rename-buffer.el
index 76011e45b7..7b911437b7 100644
--- a/denote-rename-buffer.el
+++ b/denote-rename-buffer.el
@@ -58,6 +58,7 @@ value) for a reference implementation."
"Determine if BUFFER shall be renamed.
Return the file path and the type of it as a cons cell."
(when-let* ((file (buffer-file-name buffer))
+ ((file-exists-p file))
((denote-file-has-identifier-p file))
(type (denote-filetype-heuristics file)))
(cons file type)))