Emacs/emacs/Xref-Commands
Next: Identifier Search, Previous: Looking Up Identifiers, Up: Find Identifiers [Contents][Index]
28.4.1.2 Commands Available in the *xref*
Buffer
The following commands are provided in the *xref*
buffer by
the special XREF mode:
- RET
mouse-2 Display the reference on the current line.
- n
. Move to the next reference and display it in the other window (
xref-next-line
).- p
, Move to the previous reference and display it in the other window (
xref-prev-line
).- C-o
Display the reference on the current line in the other window (
xref-show-location-at-point
).- TAB
Display the reference on the current line and bury the
*xref*
buffer (xref-quit-and-goto-xref
).- r
pattern
RETreplacement
RET Perform interactive query-replace on references that match
pattern
(xref-query-replace-in-results
), replacing the match withreplacement
. See Identifier Search.- g
Refresh the contents of the
*xref*
buffer (xref-revert-buffer
.- q
Quit the window showing the
*xref*
buffer (xref-quit
).
In addition, the usual navigation commands, such as the arrow keys, C-n, and C-p are available for moving around the buffer without displaying the references.