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 /doc | |
| 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 'doc')
| -rw-r--r-- | doc/emacs/maintaining.texi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index dc0a71511ff..112f1f4d9ed 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi | |||
| @@ -1887,8 +1887,7 @@ the special XREF mode: | |||
| 1887 | @table @kbd | 1887 | @table @kbd |
| 1888 | @item @key{RET} | 1888 | @item @key{RET} |
| 1889 | @itemx mouse-2 | 1889 | @itemx mouse-2 |
| 1890 | Display the reference on the current line and bury the @file{*xref*} | 1890 | Display the reference on the current line. |
| 1891 | buffer. | ||
| 1892 | @item n | 1891 | @item n |
| 1893 | @itemx . | 1892 | @itemx . |
| 1894 | @findex xref-next-line | 1893 | @findex xref-next-line |
| @@ -1903,6 +1902,10 @@ Move to the previous reference and display it in the other window | |||
| 1903 | @findex xref-show-location-at-point | 1902 | @findex xref-show-location-at-point |
| 1904 | Display the reference on the current line in the other window | 1903 | Display the reference on the current line in the other window |
| 1905 | (@code{xref-show-location-at-point}). | 1904 | (@code{xref-show-location-at-point}). |
| 1905 | @item TAB | ||
| 1906 | @findex xref-quit-and-goto-xref | ||
| 1907 | Display the reference on the current line and bury the @file{*xref*} | ||
| 1908 | buffer (@code{xref-quit-and-goto-xref}). | ||
| 1906 | @findex xref-query-replace-in-results | 1909 | @findex xref-query-replace-in-results |
| 1907 | @item r @var{pattern} @key{RET} @var{replacement} @key{RET} | 1910 | @item r @var{pattern} @key{RET} @var{replacement} @key{RET} |
| 1908 | Perform interactive query-replace on references that match | 1911 | Perform interactive query-replace on references that match |