diff --git a/README.org b/README.org index 8e19b64..4bd2b74 100644 --- a/README.org +++ b/README.org @@ -7132,8 +7132,9 @@ Denote is meant to be a collective effort. Every bit of help matters. bdillahu, coherentstate, doolio, duli, drcxd, elge70, elliottw, fingerknight, GuutBoy, hpgisler, hyperfocus1337,johkneisl, jtpavlock, juh, leafarbelm, mentalisttraceur, mjkalyan, oatmealm, - Pratik-Mishra-4979, pRot0ta1p, rbenit68, relict007, sarcom-sar, - sienic, skissue, sundar bp, wuzhihao, yetanotherfossman, zadca123 + potchie-maker, Pratik-Mishra-4979, pRot0ta1p, rbenit68, relict007, + sarcom-sar, sienic, skissue, sundar bp, wuzhihao, yetanotherfossman, + zadca123 Special thanks to Peter Povinec who helped refine the file-naming scheme, which is the cornerstone of this project. diff --git a/denote.el b/denote.el index 70e1458..f3897f5 100644 --- a/denote.el +++ b/denote.el @@ -3961,7 +3961,8 @@ Return nil if FILE is not recognized." (found (seq-find (lambda (type) (let ((properties (cdr type))) - (if-let* ((file-type-fn (plist-get properties :get-file-type-function))) + (if-let* ((file-type-fn (plist-get properties :get-file-type-function)) + (_ (file-exists-p file))) (funcall file-type-fn file) (ignore-errors (denote--regexp-in-file-p (plist-get properties :title-key-regexp) file)))))