Make denote-org-extras--get-backlinks-buffer-name use xrefs with absolute path

This commit is contained in:
Protesilaos Stavrou 2024-09-01 09:28:24 +03:00
parent fb375dc623
commit 4eaa943f1b
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -144,6 +144,7 @@ If FILE is nil, use the variable `buffer-file-name'."
(defun denote-org-extras--get-backlinks-for-heading (file-and-heading-id)
"Get backlinks to FILE-AND-HEADING-ID as a list of strings."
(when-let ((files (denote-directory-files nil :omit-current :text-only))
(xref-file-name-display 'abs)
(matches-in-files (xref-matches-in-files file-and-heading-id files))
(xref-alist (xref--analyze matches-in-files)))
(mapcar