aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2017-09-30 15:08:47 +0300
committerEli Zaretskii2017-09-30 15:08:47 +0300
commit82b6c765ffa18f4e3892b860eb77a9ea24430bbb (patch)
treeadccde5c64bf87737135b71a8a17b29e0cad78c5
parent645ff6c7029daef082b3a558407121207fa64ff5 (diff)
downloademacs-82b6c765ffa18f4e3892b860eb77a9ea24430bbb.tar.gz
emacs-82b6c765ffa18f4e3892b860eb77a9ea24430bbb.zip
Improve indexing of multi-file/buffer Isearch commands
* doc/emacs/maintaining.texi (Identifier Search): Change wording of index entries to make them different from those for multi-file isearch commands. (Bug#28584) * doc/emacs/search.texi (Other Repeating Search): Index the multi-* commands. (Bug#28584) Rearrange the indexing to keep each index entry close to its subject.
-rw-r--r--doc/emacs/maintaining.texi4
-rw-r--r--doc/emacs/search.texi23
2 files changed, 17 insertions, 10 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
index 39b71445941..7f91991daa3 100644
--- a/doc/emacs/maintaining.texi
+++ b/doc/emacs/maintaining.texi
@@ -1918,8 +1918,8 @@ without displaying the references.
1918 1918
1919@node Identifier Search 1919@node Identifier Search
1920@subsubsection Searching and Replacing with Identifiers 1920@subsubsection Searching and Replacing with Identifiers
1921@cindex search and replace in multiple files 1921@cindex search and replace in multiple source files
1922@cindex multiple-file search and replace 1922@cindex multiple source file search and replace
1923 1923
1924 The commands in this section perform various search and replace 1924 The commands in this section perform various search and replace
1925operations either on identifiers themselves or on files that reference 1925operations either on identifiers themselves or on files that reference
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index 9f7e9a12cd7..63cc1c24374 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -1685,15 +1685,10 @@ Aside from @code{multi-occur} and @code{multi-occur-in-matching-buffers},
1685which always search the whole buffer, all operate on the text from point 1685which always search the whole buffer, all operate on the text from point
1686to the end of the buffer, or on the region if it is active. 1686to the end of the buffer, or on the region if it is active.
1687 1687
1688@findex list-matching-lines
1689@findex occur
1690@findex multi-occur
1691@findex multi-occur-in-matching-buffers
1692@findex how-many
1693@findex flush-lines
1694@findex keep-lines
1695
1696@table @kbd 1688@table @kbd
1689@findex multi-isearch-buffers
1690@cindex isearch multiple buffers
1691@cindex multiple-buffer isearch
1697@item M-x multi-isearch-buffers 1692@item M-x multi-isearch-buffers
1698Prompt for one or more buffer names, ending with @key{RET}; then, 1693Prompt for one or more buffer names, ending with @key{RET}; then,
1699begin a multi-buffer incremental search in those buffers. (If the 1694begin a multi-buffer incremental search in those buffers. (If the
@@ -1702,10 +1697,14 @@ next specified buffer, and so forth.) With a prefix argument, prompt
1702for a regexp and begin a multi-buffer incremental search in buffers 1697for a regexp and begin a multi-buffer incremental search in buffers
1703matching that regexp. 1698matching that regexp.
1704 1699
1700@findex multi-isearch-buffers-regexp
1705@item M-x multi-isearch-buffers-regexp 1701@item M-x multi-isearch-buffers-regexp
1706This command is just like @code{multi-isearch-buffers}, except it 1702This command is just like @code{multi-isearch-buffers}, except it
1707performs an incremental regexp search. 1703performs an incremental regexp search.
1708 1704
1705@findex multi-isearch-files
1706@cindex isearch multiple files
1707@cindex multiple-file isearch
1709@item M-x multi-isearch-files 1708@item M-x multi-isearch-files
1710Prompt for one or more file names, ending with @key{RET}; then, 1709Prompt for one or more file names, ending with @key{RET}; then,
1711begin a multi-file incremental search in those files. (If the 1710begin a multi-file incremental search in those files. (If the
@@ -1714,6 +1713,7 @@ next specified file, and so forth.) With a prefix argument, prompt
1714for a regexp and begin a multi-file incremental search in files 1713for a regexp and begin a multi-file incremental search in files
1715matching that regexp. 1714matching that regexp.
1716 1715
1716@findex multi-isearch-files-regexp
1717@item M-x multi-isearch-files-regexp 1717@item M-x multi-isearch-files-regexp
1718This command is just like @code{multi-isearch-files}, except it 1718This command is just like @code{multi-isearch-files}, except it
1719performs an incremental regexp search. 1719performs an incremental regexp search.
@@ -1729,6 +1729,7 @@ a multi-file incremental search is activated automatically.
1729@vindex list-matching-lines-jump-to-current-line 1729@vindex list-matching-lines-jump-to-current-line
1730@cindex list-matching-lines-current-line-face (face name) 1730@cindex list-matching-lines-current-line-face (face name)
1731@kindex M-s o 1731@kindex M-s o
1732@findex occur
1732@item M-x occur 1733@item M-x occur
1733@itemx M-s o 1734@itemx M-s o
1734Prompt for a regexp, and display a list showing each line in the 1735Prompt for a regexp, and display a list showing each line in the
@@ -1768,25 +1769,30 @@ mode, in which edits made to the entries are also applied to the text
1768in the originating buffer. Type @kbd{C-c C-c} to return to Occur 1769in the originating buffer. Type @kbd{C-c C-c} to return to Occur
1769mode. 1770mode.
1770 1771
1772@findex list-matching-lines
1771The command @kbd{M-x list-matching-lines} is a synonym for @kbd{M-x 1773The command @kbd{M-x list-matching-lines} is a synonym for @kbd{M-x
1772occur}. 1774occur}.
1773 1775
1776@findex multi-occur
1774@item M-x multi-occur 1777@item M-x multi-occur
1775This command is just like @code{occur}, except it is able to search 1778This command is just like @code{occur}, except it is able to search
1776through multiple buffers. It asks you to specify the buffer names one 1779through multiple buffers. It asks you to specify the buffer names one
1777by one. 1780by one.
1778 1781
1782@findex multi-occur-in-matching-buffers
1779@item M-x multi-occur-in-matching-buffers 1783@item M-x multi-occur-in-matching-buffers
1780This command is similar to @code{multi-occur}, except the buffers to 1784This command is similar to @code{multi-occur}, except the buffers to
1781search are specified by a regular expression that matches visited file 1785search are specified by a regular expression that matches visited file
1782names. With a prefix argument, it uses the regular expression to 1786names. With a prefix argument, it uses the regular expression to
1783match buffer names instead. 1787match buffer names instead.
1784 1788
1789@findex how-many
1785@item M-x how-many 1790@item M-x how-many
1786Prompt for a regexp, and print the number of matches for it in the 1791Prompt for a regexp, and print the number of matches for it in the
1787buffer after point. If the region is active, this operates on the 1792buffer after point. If the region is active, this operates on the
1788region instead. 1793region instead.
1789 1794
1795@findex flush-lines
1790@item M-x flush-lines 1796@item M-x flush-lines
1791Prompt for a regexp, and delete each line that contains a match for 1797Prompt for a regexp, and delete each line that contains a match for
1792it, operating on the text after point. This command deletes the 1798it, operating on the text after point. This command deletes the
@@ -1800,6 +1806,7 @@ lines. It deletes the lines before starting to look for the next
1800match; hence, it ignores a match starting on the same line at which 1806match; hence, it ignores a match starting on the same line at which
1801another match ended. 1807another match ended.
1802 1808
1809@findex keep-lines
1803@item M-x keep-lines 1810@item M-x keep-lines
1804Prompt for a regexp, and delete each line that @emph{does not} contain 1811Prompt for a regexp, and delete each line that @emph{does not} contain
1805a match for it, operating on the text after point. If point is not at 1812a match for it, operating on the text after point. If point is not at