branch: externals/denote commit 25cc5a79e6e6a8cf998d64e7a1bcd4a5004e172f Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Require built-in xref to parse cross-references Otherwise we run into errors such as the one reported by Frank Ehmsen on the mailing list: <https://lists.sr.ht/~protesilaos/denote/%3c579a31b8-d1dd-5c02-aa2f-498526c59...@eh-is.de%3E>. --- denote-retrieve.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/denote-retrieve.el b/denote-retrieve.el index 21e768780b..07e3655e0f 100644 --- a/denote-retrieve.el +++ b/denote-retrieve.el @@ -30,6 +30,7 @@ ;;; Code: (require 'denote) +(require 'xref) (defconst denote-retrieve--title-front-matter-regexp "^\\(?:#\\+\\)?\\(?:title\\)\\s-*[:=]\\s-*[\"']?\\(?1:.*\\b\\)[\"']?" @@ -97,8 +98,6 @@ Optional GROUP is a regexp construct for (when (denote--only-note-p f) f)) files))) -(declare-function xref--analyze "xref" (xrefs)) - (defun denote-retrieve--xrefs (identifier) "Return xrefs of IDENTIFIER in variable `denote-directory'. The xrefs are returned as an alist."