mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-09 01:05:39 -08:00
New commands xref-next-line-no-show and xref-prev-line-no-show (bug#44611)
* lisp/progmodes/xref.el (xref-next-line-no-show) (xref-prev-line-no-show): New commands. (xref-next-line, xref-prev-line): Use them.
This commit is contained in:
parent
2ebd950239
commit
3ea0a334dc
1 changed files with 12 additions and 2 deletions
|
|
@ -609,16 +609,26 @@ SELECT is `quit', also quit the *xref* window."
|
|||
(when xref
|
||||
(xref--show-location (xref-item-location xref)))))
|
||||
|
||||
(defun xref-next-line-no-show ()
|
||||
"Move to the next xref but don't display its source."
|
||||
(interactive)
|
||||
(xref--search-property 'xref-item))
|
||||
|
||||
(defun xref-next-line ()
|
||||
"Move to the next xref and display its source in the appropriate window."
|
||||
(interactive)
|
||||
(xref--search-property 'xref-item)
|
||||
(xref-next-line-no-show)
|
||||
(xref-show-location-at-point))
|
||||
|
||||
(defun xref-prev-line-no-show ()
|
||||
"Move to the previous xref but don't display its source."
|
||||
(interactive)
|
||||
(xref--search-property 'xref-item t))
|
||||
|
||||
(defun xref-prev-line ()
|
||||
"Move to the previous xref and display its source in the appropriate window."
|
||||
(interactive)
|
||||
(xref--search-property 'xref-item t)
|
||||
(xref-prev-line-no-show)
|
||||
(xref-show-location-at-point))
|
||||
|
||||
(defun xref-next-group ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue