Improve documentation of 'xref-find-references-and-replace'
* etc/NEWS: Clarify the 'xref-find-references-and-replace' entry. * doc/emacs/maintaining.texi (Identifier Search): Document 'xref-find-references-and-replace'.
This commit is contained in:
parent
07335abeb4
commit
3ae74c2e47
2 changed files with 10 additions and 1 deletions
|
@ -2321,6 +2321,10 @@ Find all the references for the identifier at point.
|
|||
Interactively replace @var{regexp} with @var{replacement} in the names
|
||||
of all the identifiers shown in the @file{*xref*} buffer.
|
||||
|
||||
@item M-x xref-find-references-and-replace @key{RET} @var{from} @key{RET} @var{to} @key{RET}
|
||||
Interactively rename all instances of the identifier @var{from} to the
|
||||
new name @var{to}.
|
||||
|
||||
@item M-x tags-search @key{RET} @var{regexp} @key{RET}
|
||||
Search for @var{regexp} through the files in the selected tags
|
||||
table.
|
||||
|
@ -2366,6 +2370,11 @@ files where these identifiers are referenced. This is useful when you
|
|||
rename your identifiers as part of refactoring. This command should
|
||||
be invoked in the @file{*xref*} buffer generated by @kbd{M-?}.
|
||||
|
||||
@findex xref-find-references-and-replace
|
||||
@kbd{M-x xref-find-references-and-replace} works similarly to
|
||||
@code{xref-query-replace-in-results}, but is more convenient when you
|
||||
want to rename a single identifier specified by its name @var{from}.
|
||||
|
||||
@findex tags-search
|
||||
@kbd{M-x tags-search} reads a regexp using the minibuffer, then
|
||||
searches for matches in all the files in the selected tags table, one
|
||||
|
|
2
etc/NEWS
2
etc/NEWS
|
@ -598,7 +598,7 @@ It is bound to 'C-M-,' and jumps to the location where 'xref-go-back'
|
|||
called without prefix argument, to make the most common case faster:
|
||||
replacing entire matches.
|
||||
|
||||
*** New command 'xref-find-references-and-replace'.
|
||||
*** New command 'xref-find-references-and-replace' to rename one identifier.
|
||||
|
||||
** File notifications
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue