branch: externals/denote commit 4d4a8c57e003940df5df5b86579c70bea19a70db Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Make stylistic change to denote-get-backlinks --- denote.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/denote.el b/denote.el index c1ff7aa2ae..aa3a775964 100644 --- a/denote.el +++ b/denote.el @@ -6031,8 +6031,9 @@ Also see `denote-get-links'." (when-let* ((current-file (or file (buffer-file-name))) (_ (denote-file-is-in-denote-directory-p current-file)) (id (or (denote-retrieve-filename-identifier current-file) - (user-error "The file does not have a Denote identifier")))) - (mapcar #'car (denote-retrieve-xref-alist-for-backlinks id)))) + (user-error "The file does not have a Denote identifier"))) + (xrefs (denote-retrieve-xref-alist-for-backlinks id))) + (mapcar #'car xrefs))) ;; TODO 2024-09-04: Instead of using `denote-get-backlinks' we ;; should have a function that does not try to find all backlinks but