branch: externals/denote
commit 76ecfd24d68f585402cab09c35c1aa74e574716a
Author: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe...@gmail.com>

    Use denote-retrieve-xref-alist-for-backlinks in denote-get-backlinks
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 37b1def175..31df5e34a1 100644
--- a/denote.el
+++ b/denote.el
@@ -6041,7 +6041,7 @@ Also see `denote-get-links'."
   (when-let* ((current-file (or file (buffer-file-name)))
               (id (or (denote-retrieve-filename-identifier current-file)
                       (user-error "The file does not have a Denote 
identifier"))))
-    (delete current-file (denote-retrieve-files-xref-query id))))
+    (mapcar #'car (denote-retrieve-xref-alist-for-backlinks id))))
 
 ;; TODO 2024-09-04: Instead of using `denote-get-backlinks' we
 ;; should have a function that does not try to find all backlinks but

Reply via email to