aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXue Fuqiao2013-12-22 13:36:29 +0800
committerXue Fuqiao2013-12-22 13:36:29 +0800
commit07e9eaa2dc08892075f110a30c768a7751da083c (patch)
tree002fc2fc6860bae3daca0788269196237b2fe941
parent8d3c54a0b225a159002c92bd13ebe1086857dac2 (diff)
downloademacs-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/ChangeLog2
-rw-r--r--doc/emacs/search.texi10
-rw-r--r--etc/NEWS1
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 @@
12013-12-22 Xue Fuqiao <xfq.free@gmail.com> 12013-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.
506If incremental search is active, toggle symbol search mode 506If 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
508forward symbol search (@code{isearch-forward-symbol}). 508forward symbol search (@code{isearch-forward-symbol}).
509@item M-s .
510Start a symbol incremental search forward with the symbol found near
511point 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}
510Search forward for @var{symbol}, nonincrementally. 513Search 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
518incremental 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
524search 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
520active, @kbd{M-s _} switches to a symbol search, preserving the 526active, @kbd{M-s _} switches to a symbol search, preserving the
521direction of the search and the current search string; you can disable 527direction of the search and the current search string; you can disable
diff --git a/etc/NEWS b/etc/NEWS
index c73c2cc1946..c52e596e56e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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')
616starts a symbol (identifier) incremental search forward with the 617starts a symbol (identifier) incremental search forward with the
617symbol found near point added to the search string initially. 618symbol found near point added to the search string initially.