aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJoão Távora2017-10-13 16:37:47 +0100
committerJoão Távora2017-11-03 16:13:39 +0000
commite950f329c0cfbe9bf3ba2c2e8ee788d6cdf4cebb (patch)
tree3878b76f97508cbd1d5830b3cbbf1c03140f89d2 /etc
parent5d34e1b2881caa5743816030c2e9cdcda58e9719 (diff)
downloademacs-e950f329c0cfbe9bf3ba2c2e8ee788d6cdf4cebb.tar.gz
emacs-e950f329c0cfbe9bf3ba2c2e8ee788d6cdf4cebb.zip
New xref-quit-and-goto-xref command bound to TAB (bug#28814)
This is like xref-goto-xref, but quits the *xref* window just before the user jump to ref. * lisp/progmodes/xref.el (xref--show-location): Handle 'quit value for SELECT. (xref-goto-xref): Take optional QUIT arg. (xref-quit-and-goto-xref): New command. (xref--xref-buffer-mode-map): Bind "Q" and "TAB" to xref-quit-and-goto-xref. * doc/emacs/maintaining.texi (Xref Commands): Describe new bindings in *xref*. * etc/NEWS (Xref): Describe new binding.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 286d27455fe..10e9a7f00f3 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1213,6 +1213,16 @@ New user options `term-char-mode-buffer-read-only' and
1213are non-nil by default. Customize these options to nil if you want 1213are non-nil by default. Customize these options to nil if you want
1214the previous behavior. 1214the previous behavior.
1215 1215
1216** Xref
1217
1218+++
1219*** When an *xref* buffer is needed, 'TAB' quits and jumps to an xref.
1220
1221A new command 'xref-quit-and-goto-xref', bound to 'TAB' in *xref*
1222buffers, quits the window before jumping to the destination. In many
1223situations, the intended window configuration is restored, just as if
1224the *xref* buffer hadn't been necessary in the first place.
1225
1216 1226
1217* New Modes and Packages in Emacs 26.1 1227* New Modes and Packages in Emacs 26.1
1218 1228