]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove the binding for xref-quit-and-goto-xref
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 22 Apr 2021 21:18:01 +0000 (00:18 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 22 Apr 2021 21:18:01 +0000 (00:18 +0300)
* lisp/progmodes/xref.el (xref--xref-buffer-mode-map):
Remove the binding for xref-quit-and-goto-xref (bug#44611).

* doc/emacs/maintaining.texi (Xref Commands): Update.

doc/emacs/maintaining.texi
etc/NEWS
lisp/progmodes/xref.el

index dfe4eb0ea302eb491b4e5e11a032b130da770354..32f5cb9a4396c18b05f17d922c184282b691c8cd 100644 (file)
@@ -2242,10 +2242,9 @@ display it in the other window (@code{xref-prev-group}).
 Display the reference on the current line in the other window
 (@code{xref-show-location-at-point}).
 
-@item @key{TAB}
-@findex xref-quit-and-goto-xref
-Display the reference on the current line and bury the @file{*xref*}
-buffer (@code{xref-quit-and-goto-xref}).
+@kindex C-u RET
+To bury the @file{*xref*} buffer before displaying the reference, call
+@code{xref-goto-xref} with a prefix argument: @kbd{C-u RET}.
 
 @item r @var{pattern} @key{RET} @var{replacement} @key{RET}
 Perform interactive query-replace on references that match
index e7258f19b46a2ee7e8da504b3adda68a4b6708f7..6fe4e98a50a0e0558fbed5ac551409f21a77e529 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1644,11 +1644,19 @@ in 'project-list-file'.
 
 ** xref
 
----
++++
 *** Prefix arg of 'xref-goto-xref' quits the "*xref*" buffer.
 So typing 'C-u RET' in the "*xref*" buffer quits its window
 before navigating to the selected location.
 
++++
+*** The TAB binding in *xref* buffers has been removed. Use 'C-u RET' instead.
+To restore the old binding, say something like:
+
+    (require 'xref)
+    (define-key xref--xref-buffer-mode-map
+                (kbd "TAB") #'xref-quit-and-goto-xref)
+
 *** New user options 'xref-search-program' and 'xref-search-program-alist'.
 So far 'grep' and 'ripgrep' are supported.  'ripgrep' seems to offer better
 performance in certain cases, in particular for case-insensitive
index 5d99915347b10edb2f904aecc6307b5ecdff38b4..5f1c32b212cf4620556ff8d97148ffde3119481d 100644 (file)
@@ -822,7 +822,6 @@ ITEMS is an xref item which "
     (define-key map (kbd "P") #'xref-prev-group)
     (define-key map (kbd "r") #'xref-query-replace-in-results)
     (define-key map (kbd "RET") #'xref-goto-xref)
-    (define-key map (kbd "TAB")  #'xref-quit-and-goto-xref)
     (define-key map (kbd "C-o") #'xref-show-location-at-point)
     ;; suggested by Johan Claesson "to further reduce finger movement":
     (define-key map (kbd ".") #'xref-next-line)