diff options
| -rw-r--r-- | doc/emacs/maintaining.texi | 4 | ||||
| -rw-r--r-- | doc/emacs/search.texi | 23 |
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 |
| 1925 | operations either on identifiers themselves or on files that reference | 1925 | operations 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}, | |||
| 1685 | which always search the whole buffer, all operate on the text from point | 1685 | which always search the whole buffer, all operate on the text from point |
| 1686 | to the end of the buffer, or on the region if it is active. | 1686 | to 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 |
| 1698 | Prompt for one or more buffer names, ending with @key{RET}; then, | 1693 | Prompt for one or more buffer names, ending with @key{RET}; then, |
| 1699 | begin a multi-buffer incremental search in those buffers. (If the | 1694 | begin 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 | |||
| 1702 | for a regexp and begin a multi-buffer incremental search in buffers | 1697 | for a regexp and begin a multi-buffer incremental search in buffers |
| 1703 | matching that regexp. | 1698 | matching 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 |
| 1706 | This command is just like @code{multi-isearch-buffers}, except it | 1702 | This command is just like @code{multi-isearch-buffers}, except it |
| 1707 | performs an incremental regexp search. | 1703 | performs 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 |
| 1710 | Prompt for one or more file names, ending with @key{RET}; then, | 1709 | Prompt for one or more file names, ending with @key{RET}; then, |
| 1711 | begin a multi-file incremental search in those files. (If the | 1710 | begin 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 | |||
| 1714 | for a regexp and begin a multi-file incremental search in files | 1713 | for a regexp and begin a multi-file incremental search in files |
| 1715 | matching that regexp. | 1714 | matching 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 |
| 1718 | This command is just like @code{multi-isearch-files}, except it | 1718 | This command is just like @code{multi-isearch-files}, except it |
| 1719 | performs an incremental regexp search. | 1719 | performs 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 |
| 1734 | Prompt for a regexp, and display a list showing each line in the | 1735 | Prompt 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 | |||
| 1768 | in the originating buffer. Type @kbd{C-c C-c} to return to Occur | 1769 | in the originating buffer. Type @kbd{C-c C-c} to return to Occur |
| 1769 | mode. | 1770 | mode. |
| 1770 | 1771 | ||
| 1772 | @findex list-matching-lines | ||
| 1771 | The command @kbd{M-x list-matching-lines} is a synonym for @kbd{M-x | 1773 | The command @kbd{M-x list-matching-lines} is a synonym for @kbd{M-x |
| 1772 | occur}. | 1774 | occur}. |
| 1773 | 1775 | ||
| 1776 | @findex multi-occur | ||
| 1774 | @item M-x multi-occur | 1777 | @item M-x multi-occur |
| 1775 | This command is just like @code{occur}, except it is able to search | 1778 | This command is just like @code{occur}, except it is able to search |
| 1776 | through multiple buffers. It asks you to specify the buffer names one | 1779 | through multiple buffers. It asks you to specify the buffer names one |
| 1777 | by one. | 1780 | by 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 |
| 1780 | This command is similar to @code{multi-occur}, except the buffers to | 1784 | This command is similar to @code{multi-occur}, except the buffers to |
| 1781 | search are specified by a regular expression that matches visited file | 1785 | search are specified by a regular expression that matches visited file |
| 1782 | names. With a prefix argument, it uses the regular expression to | 1786 | names. With a prefix argument, it uses the regular expression to |
| 1783 | match buffer names instead. | 1787 | match buffer names instead. |
| 1784 | 1788 | ||
| 1789 | @findex how-many | ||
| 1785 | @item M-x how-many | 1790 | @item M-x how-many |
| 1786 | Prompt for a regexp, and print the number of matches for it in the | 1791 | Prompt for a regexp, and print the number of matches for it in the |
| 1787 | buffer after point. If the region is active, this operates on the | 1792 | buffer after point. If the region is active, this operates on the |
| 1788 | region instead. | 1793 | region instead. |
| 1789 | 1794 | ||
| 1795 | @findex flush-lines | ||
| 1790 | @item M-x flush-lines | 1796 | @item M-x flush-lines |
| 1791 | Prompt for a regexp, and delete each line that contains a match for | 1797 | Prompt for a regexp, and delete each line that contains a match for |
| 1792 | it, operating on the text after point. This command deletes the | 1798 | it, 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 | |||
| 1800 | match; hence, it ignores a match starting on the same line at which | 1806 | match; hence, it ignores a match starting on the same line at which |
| 1801 | another match ended. | 1807 | another match ended. |
| 1802 | 1808 | ||
| 1809 | @findex keep-lines | ||
| 1803 | @item M-x keep-lines | 1810 | @item M-x keep-lines |
| 1804 | Prompt for a regexp, and delete each line that @emph{does not} contain | 1811 | Prompt for a regexp, and delete each line that @emph{does not} contain |
| 1805 | a match for it, operating on the text after point. If point is not at | 1812 | a match for it, operating on the text after point. If point is not at |