branch: externals/denote-org
commit a05587aea8d4ac88af141037d472b9788d689989
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Use denote-retrieve-filename-identifier without falling back to an error
    
    We do not need an error at this point. Plus, we want to remove the
    denote-retrieve-filename-identifier so that developers can write their
    own errors as they see fit.
---
 denote-org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote-org.el b/denote-org.el
index df0231a085..cb953347ce 100644
--- a/denote-org.el
+++ b/denote-org.el
@@ -171,7 +171,7 @@ If CUSTOM_ID is present but 
`denote-org-store-link-to-heading' is not
 set to `context', then return a patternf of the following form:
 
     ID::#HEADING-ID"
-  (when-let* ((id (denote-retrieve-filename-identifier-with-error 
buffer-file-name)))
+  (when-let* ((id (denote-retrieve-filename-identifier buffer-file-name)))
     (let ((context-p (eq denote-org-store-link-to-heading 'context))
           (heading-id (org-entry-get (point) "CUSTOM_ID")))
       (cond

Reply via email to