mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Make denote-query-* commands work as intended in the backlinks buffer
Thanks to 82Kang for reporting the bug in issue 695: <https://github.com/protesilaos/denote/issues/695>.
This commit is contained in:
parent
b4978d83cb
commit
5b632ae958
|
|
@ -5933,6 +5933,7 @@ alist, such as `denote-backlinks-display-buffer-action'."
|
||||||
(dirs (denote-directories)))
|
(dirs (denote-directories)))
|
||||||
(unless xref-alist
|
(unless xref-alist
|
||||||
(error "No results to display"))
|
(error "No results to display"))
|
||||||
|
(setq denote-query--last-files (delete-dups (mapcar #'car xref-alist)))
|
||||||
;; Update group of each item in xref-alist
|
;; Update group of each item in xref-alist
|
||||||
(dolist (x xref-alist)
|
(dolist (x xref-alist)
|
||||||
(let* ((file-xref (car x)))
|
(let* ((file-xref (car x)))
|
||||||
|
|
@ -5961,6 +5962,7 @@ alist, such as `denote-backlinks-display-buffer-action'."
|
||||||
|
|
||||||
DISPLAY-BUFFER-ACTION is a `display-buffer' action and concomitant
|
DISPLAY-BUFFER-ACTION is a `display-buffer' action and concomitant
|
||||||
alist, such as `denote-backlinks-display-buffer-action'."
|
alist, such as `denote-backlinks-display-buffer-action'."
|
||||||
|
(setq denote-query--last-query identifier)
|
||||||
(if-let* ((xref-alist (denote-retrieve-xref-alist-for-backlinks identifier)))
|
(if-let* ((xref-alist (denote-retrieve-xref-alist-for-backlinks identifier)))
|
||||||
(denote--display-buffer-from-xref-alist xref-alist buffer-name display-buffer-action)
|
(denote--display-buffer-from-xref-alist xref-alist buffer-name display-buffer-action)
|
||||||
(error "No matches for identifier `%s'" identifier)))
|
(error "No matches for identifier `%s'" identifier)))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue