branch: externals/denote
commit 4157cac287b60be5b837208a7aa84d95d8b819d6
Merge: 23d268a156 adf4e9f7d1
Author: Protesilaos Stavrou <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #358 from jeanphilippegg/fix-denote-command
Fix issue on note creation caused by commit bce7778
---
denote.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/denote.el b/denote.el
index eb4e5089a4..ae06801c8a 100644
--- a/denote.el
+++ b/denote.el
@@ -1922,8 +1922,8 @@ TEMPLATE, and SIGNATURE should be valid for note
creation."
title (denote--date date file-type) keywords
id
file-type)))
- (when (file-regular-p buffer)
- (user-error "A file named `%s' already exists" buffer))
+ (when (file-regular-p path)
+ (user-error "A file named `%s' already exists" path))
(with-current-buffer buffer
(insert header)
(insert template))