Function: combobulate-xref-find-query-buffer-references
combobulate-xref-find-query-buffer-references is an interactive and
natively compiled function defined in combobulate-query.el.
Signature
(combobulate-xref-find-query-buffer-references QUERY &optional BUFFER)
Documentation
Find all QUERY references in BUFFER.
The underlying xref backend will source the query from
combobulate-xref-query. If it is nil, instead use the current
query in the ring.
If BUFFER is nil, the current buffer is used.
Key Bindings
combobulate-key-map C-c o x b combobulate-options-key-map x b combobulate-xref-key-map b
Source Code
;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-query.el
(defun combobulate-xref-find-query-buffer-references (query &optional buffer)
"Find all QUERY references in BUFFER.
The underlying xref backend will source the query from
`combobulate-xref-query'. If it is nil, instead use the current
query in the ring.
If BUFFER is nil, the current buffer is used."
(interactive (list (combobulate-query-ring-current-query)
(current-buffer)))
(pop-to-buffer buffer)
(let ((xref-backend-functions '(combobulate-xref-backend))
(xref-show-xrefs-function (or combobulate-xref-show-xrefs-function
xref-show-xrefs-function))
(combobulate-xref-buffer buffer)
(combobulate-xref-query query))
(xref-find-references query)))