Fix denote--id-exists-p

This commit is contained in:
Jean-Philippe Gagné Guay 2022-08-09 00:44:29 -04:00
parent 065a10fc60
commit 92310d2c37

View file

@ -879,7 +879,7 @@ where the former does not read dates without a time component."
"Return non-nil if IDENTIFIER already exists."
(seq-some (lambda (file)
(string-prefix-p identifier (file-name-nondirectory file)))
(concat (denote--directory-files)
(append (denote--directory-files)
(denote--buffer-file-names))))
(defun denote--barf-duplicate-id (identifier)