branch: externals/denote
commit adf4e9f7d19280272230a5d70d446f4a54f8ba55
Author: Jean-Philippe Gagné Guay <[email protected]>
Commit: Jean-Philippe Gagné Guay <[email protected]>
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))