diff options
| author | João Távora | 2017-10-13 16:37:47 +0100 |
|---|---|---|
| committer | João Távora | 2017-11-03 16:13:39 +0000 |
| commit | e950f329c0cfbe9bf3ba2c2e8ee788d6cdf4cebb (patch) | |
| tree | 3878b76f97508cbd1d5830b3cbbf1c03140f89d2 /etc | |
| parent | 5d34e1b2881caa5743816030c2e9cdcda58e9719 (diff) | |
| download | emacs-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/NEWS | 10 |
1 files changed, 10 insertions, 0 deletions
| @@ -1213,6 +1213,16 @@ New user options `term-char-mode-buffer-read-only' and | |||
| 1213 | are non-nil by default. Customize these options to nil if you want | 1213 | are non-nil by default. Customize these options to nil if you want |
| 1214 | the previous behavior. | 1214 | the previous behavior. |
| 1215 | 1215 | ||
| 1216 | ** Xref | ||
| 1217 | |||
| 1218 | +++ | ||
| 1219 | *** When an *xref* buffer is needed, 'TAB' quits and jumps to an xref. | ||
| 1220 | |||
| 1221 | A new command 'xref-quit-and-goto-xref', bound to 'TAB' in *xref* | ||
| 1222 | buffers, quits the window before jumping to the destination. In many | ||
| 1223 | situations, the intended window configuration is restored, just as if | ||
| 1224 | the *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 | ||