summaryrefslogtreecommitdiff
path: root/lisp/progmodes/xref.el
diff options
context:
space:
mode:
authorYuuki Harano <masm+github@masm11.me>2021-03-21 15:54:46 +0900
committerYuuki Harano <masm+github@masm11.me>2021-03-21 15:54:46 +0900
commit5d2f319eec33fea2cb29a02210952ee590b4b21b (patch)
tree8dd6a5502f4cedcc060598ce0c8a3ef6e8688b6a /lisp/progmodes/xref.el
parent7a7bc15242896b20c7af49f77f0e22c3d78e4d88 (diff)
parente9e691093ab843911b0ac7a9a9188d477415db2e (diff)
downloademacs-5d2f319eec33fea2cb29a02210952ee590b4b21b.tar.gz
emacs-5d2f319eec33fea2cb29a02210952ee590b4b21b.tar.bz2
emacs-5d2f319eec33fea2cb29a02210952ee590b4b21b.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'lisp/progmodes/xref.el')
-rw-r--r--lisp/progmodes/xref.el14
1 files changed, 12 insertions, 2 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index c066d9dc024..ea52befec57 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -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 ()