diff options
| author | Xue Fuqiao | 2013-12-22 13:36:29 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-12-22 13:36:29 +0800 |
| commit | 07e9eaa2dc08892075f110a30c768a7751da083c (patch) | |
| tree | 002fc2fc6860bae3daca0788269196237b2fe941 | |
| parent | 8d3c54a0b225a159002c92bd13ebe1086857dac2 (diff) | |
| download | emacs-07e9eaa2dc08892075f110a30c768a7751da083c.tar.gz emacs-07e9eaa2dc08892075f110a30c768a7751da083c.zip | |
Document `isearch-forward-symbol-at-point'.
* doc/emacs/search.texi (Symbol Search): Document `isearch-forward-symbol-at-point'.
| -rw-r--r-- | doc/emacs/ChangeLog | 2 | ||||
| -rw-r--r-- | doc/emacs/search.texi | 10 | ||||
| -rw-r--r-- | etc/NEWS | 1 |
3 files changed, 11 insertions, 2 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 64b77d9c1da..fbc7da4b1c7 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2013-12-22 Xue Fuqiao <xfq.free@gmail.com> | 1 | 2013-12-22 Xue Fuqiao <xfq.free@gmail.com> |
| 2 | 2 | ||
| 3 | * search.texi (Symbol Search): Document `isearch-forward-symbol-at-point'. | ||
| 4 | |||
| 3 | * files.texi (File Conveniences): Document `image-next-file' and `image-previous-file'. | 5 | * files.texi (File Conveniences): Document `image-next-file' and `image-previous-file'. |
| 4 | 6 | ||
| 5 | * display.texi (Optional Mode Line): Fix an index. | 7 | * display.texi (Optional Mode Line): Fix an index. |
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index 13e61b70264..16eed9b16dc 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi | |||
| @@ -506,6 +506,9 @@ searching source code. | |||
| 506 | If incremental search is active, toggle symbol search mode | 506 | If incremental search is active, toggle symbol search mode |
| 507 | (@code{isearch-toggle-symbol}); otherwise, begin an incremental | 507 | (@code{isearch-toggle-symbol}); otherwise, begin an incremental |
| 508 | forward symbol search (@code{isearch-forward-symbol}). | 508 | forward symbol search (@code{isearch-forward-symbol}). |
| 509 | @item M-s . | ||
| 510 | Start a symbol incremental search forward with the symbol found near | ||
| 511 | point added to the search string initially. | ||
| 509 | @item M-s _ @key{RET} @var{symbol} @key{RET} | 512 | @item M-s _ @key{RET} @var{symbol} @key{RET} |
| 510 | Search forward for @var{symbol}, nonincrementally. | 513 | Search forward for @var{symbol}, nonincrementally. |
| 511 | @item M-s _ C-r @key{RET} @var{symbol} @key{RET} | 514 | @item M-s _ C-r @key{RET} @var{symbol} @key{RET} |
| @@ -513,9 +516,12 @@ Search backward for @var{symbol}, nonincrementally. | |||
| 513 | @end table | 516 | @end table |
| 514 | 517 | ||
| 515 | @kindex M-s _ | 518 | @kindex M-s _ |
| 519 | @kindex M-s . | ||
| 516 | @findex isearch-forward-symbol | 520 | @findex isearch-forward-symbol |
| 517 | To begin a forward incremental symbol search, type @kbd{M-s _}. If | 521 | @findex isearch-forward-symbol-at-point |
| 518 | incremental search is not already active, this runs the command | 522 | To begin a forward incremental symbol search, type @kbd{M-s _} (or |
| 523 | @kbd{M-s .} if the symbol to search is near point). If incremental | ||
| 524 | search is not already active, this runs the command | ||
| 519 | @code{isearch-forward-symbol}. If incremental search is already | 525 | @code{isearch-forward-symbol}. If incremental search is already |
| 520 | active, @kbd{M-s _} switches to a symbol search, preserving the | 526 | active, @kbd{M-s _} switches to a symbol search, preserving the |
| 521 | direction of the search and the current search string; you can disable | 527 | direction of the search and the current search string; you can disable |
| @@ -612,6 +612,7 @@ rather than mboxo. Customize `unrmail-mbox-format' to change this. | |||
| 612 | 612 | ||
| 613 | ** Search and Replace | 613 | ** Search and Replace |
| 614 | 614 | ||
| 615 | +++ | ||
| 615 | *** New global command `M-s .' (`isearch-forward-symbol-at-point') | 616 | *** New global command `M-s .' (`isearch-forward-symbol-at-point') |
| 616 | starts a symbol (identifier) incremental search forward with the | 617 | starts a symbol (identifier) incremental search forward with the |
| 617 | symbol found near point added to the search string initially. | 618 | symbol found near point added to the search string initially. |