changeset 111908:f076312ff320

Document behavior of lazy highlight in word search (Bug#7470). * doc/emacs/search.texi (Word Search): Note that the lazy highlight always matches to whole words (Bug#7470).
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 04 Dec 2010 20:16:01 -0500
parents 163a7066458a
children b803b3170809
files doc/emacs/ChangeLog doc/emacs/search.texi
diffstat 2 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/doc/emacs/ChangeLog	Sat Dec 04 19:59:37 2010 -0500
+++ b/doc/emacs/ChangeLog	Sat Dec 04 20:16:01 2010 -0500
@@ -1,3 +1,8 @@
+2010-12-05  Chong Yidong  <cyd@stupidchicken.com>
+
+	* search.texi (Word Search): Note that the lazy highlight always
+	matches to whole words (Bug#7470).
+
 2010-12-04  Eli Zaretskii  <eliz@gnu.org>
 
 	* display.texi (Optional Mode Line): Make the description of
--- a/doc/emacs/search.texi	Sat Dec 04 19:59:37 2010 -0500
+++ b/doc/emacs/search.texi	Sat Dec 04 20:16:01 2010 -0500
@@ -459,11 +459,13 @@
 These run the commands @code{word-search-forward} and
 @code{word-search-backward} respectively.
 
-  A nonincremental word search differs slightly from the incremental
-version in the way it finds a match: the last word in the search
-string must be an exact match for a whole word.  In an incremental
-word search, the last word in the search string can match part of a
-word; this allows the matching to proceed incrementally as you type.
+  Incremental and nonincremental word searches differ slightly in the
+way they find a match.  In a nonincremental word search, the last word
+in the search string must exactly match a whole word.  In an
+incremental word search, the matching is more lax: the last word in
+the search string can match part of a word, so that the matching
+proceeds incrementally as you type.  This additional laxity does not
+apply to the lazy highlight, which always matches whole words.
 
 @node Regexp Search
 @section Regular Expression Search