From 11b56fa0b4d6245ee8312abe946266969a65fce8 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 7 Sep 2021 18:44:26 +0300 Subject: [PATCH] Fix a recent documentation change * lisp/progmodes/xref.el (xref-auto-jump-to-first-definition) (xref-auto-jump-to-first-xref): * etc/NEWS: Fix wording and typos. --- etc/NEWS | 8 ++++---- lisp/progmodes/xref.el | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 52a1443c162..2275fa43a6d 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -2309,16 +2309,16 @@ before navigating to the selected location. +++ *** New user options to automatically show the first Xref match. The new user option 'xref-auto-jump-to-first-definition' controls the -behavior of 'xref-find-definitions' and related commands, like -'xref-find-definitions-other-windo': if it's t or 'show', the first +behavior of 'xref-find-definitions' and its variants, like +'xref-find-definitions-other-window': if it's t or 'show', the first match is automatically displayed; if it's 'move', point in the "*xref*" buffer is automatically moved to the first match without displaying it. The new user option 'xref-auto-jump-to-first-xref' changes the behavior of Xref commands such as 'xref-find-references', 'xref-find-apropos', and 'project-find-regexp', which are expected to -display many match that the user would like to -visit. 'xref-auto-jump-to-first-xref' changes their behavior muuch in +display many matches that the user would like to +visit. 'xref-auto-jump-to-first-xref' changes their behavior much in the same way as 'xref-auto-jump-to-first-definition' affects the "find-definitions" commands. diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index f6d88e13cc0..082da1e1b7a 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -421,7 +421,7 @@ elements is negated: these commands will NOT prompt." `show' means to show the first result's location, but keep the focus on the Xref buffer's window. `move' means to only move point to the first result. -This variable also affects commands similar to `xref-find-definitions', +This variable also affects the variants of `xref-find-definitions', such as `xref-find-definitions-other-window'." :type '(choice (const :tag "Jump" t) (const :tag "Show" show) @@ -435,7 +435,7 @@ such as `xref-find-definitions-other-window'." `show' means to show the first result's location, but keep the focus on the Xref buffer's window. `move' means to only move point to the first result. -This variable also affects commands similar to `xref-find-definitions', +This variable also affects commands similar to `xref-find-references', such as `xref-find-references-at-mouse', `xref-find-apropos', and `project-find-regexp'. -- 2.39.2