diff options
| author | Chong Yidong | 2009-04-10 04:48:05 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-04-10 04:48:05 +0000 |
| commit | fca4ec765142cca3fd9b8a638f4cf39a304f7fbc (patch) | |
| tree | a8f6ec31956c4e5f75c1cc3bc0fc10975d59a72b | |
| parent | 98a326f7ef8fdc7d7ada32078ff8007c6e5f24cd (diff) | |
| download | emacs-fca4ec765142cca3fd9b8a638f4cf39a304f7fbc.tar.gz emacs-fca4ec765142cca3fd9b8a638f4cf39a304f7fbc.zip | |
* searching.texi (String Search): Document word-search-forward-lax
and word-search-backward-lax.
(Searching and Case): Describe isearch behavior more precisely.
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/searching.texi | 48 |
2 files changed, 34 insertions, 18 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 5b568b627c4..9b1fdf124d2 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2009-04-10 Chong Yidong <cyd@stupidchicken.com> | 1 | 2009-04-10 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * searching.texi (String Search): Document word-search-forward-lax | ||
| 4 | and word-search-backward-lax. | ||
| 5 | (Searching and Case): Describe isearch behavior more precisely. | ||
| 6 | |||
| 3 | * keymaps.texi (Tool Bar): Mention that some platforms do not | 7 | * keymaps.texi (Tool Bar): Mention that some platforms do not |
| 4 | support multi-line toolbars. Suggested by Stephen Eglen. | 8 | support multi-line toolbars. Suggested by Stephen Eglen. |
| 5 | 9 | ||
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index eea165d1c1f..bc223f8ac3f 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi | |||
| @@ -106,11 +106,9 @@ leaves point at the beginning of the match. | |||
| 106 | @end deffn | 106 | @end deffn |
| 107 | 107 | ||
| 108 | @deffn Command word-search-forward string &optional limit noerror repeat | 108 | @deffn Command word-search-forward string &optional limit noerror repeat |
| 109 | @c @cindex word search Redundant | ||
| 110 | This function searches forward from point for a ``word'' match for | 109 | This function searches forward from point for a ``word'' match for |
| 111 | @var{string}. If it finds a match, it sets point to the end of the | 110 | @var{string}. If it finds a match, it sets point to the end of the |
| 112 | match found, and returns the new value of point. | 111 | match found, and returns the new value of point. |
| 113 | @c Emacs 19 feature | ||
| 114 | 112 | ||
| 115 | Word matching regards @var{string} as a sequence of words, disregarding | 113 | Word matching regards @var{string} as a sequence of words, disregarding |
| 116 | punctuation that separates them. It searches the buffer for the same | 114 | punctuation that separates them. It searches the buffer for the same |
| @@ -155,6 +153,13 @@ If @var{repeat} is non-@code{nil}, then the search is repeated that many | |||
| 155 | times. Point is positioned at the end of the last match. | 153 | times. Point is positioned at the end of the last match. |
| 156 | @end deffn | 154 | @end deffn |
| 157 | 155 | ||
| 156 | @deffn Command word-search-forward-lax string &optional limit noerror repeat | ||
| 157 | This command is identical to @code{word-search-forward}, except that | ||
| 158 | the end of @code{string} need not match a word boundary unless it ends | ||
| 159 | in whitespace. For instance, searching for @samp{ball boy} matches | ||
| 160 | @samp{ball boyee}, but does not match @samp{aball boy}. | ||
| 161 | @end deffn | ||
| 162 | |||
| 158 | @deffn Command word-search-backward string &optional limit noerror repeat | 163 | @deffn Command word-search-backward string &optional limit noerror repeat |
| 159 | This function searches backward from point for a word match to | 164 | This function searches backward from point for a word match to |
| 160 | @var{string}. This function is just like @code{word-search-forward} | 165 | @var{string}. This function is just like @code{word-search-forward} |
| @@ -162,6 +167,12 @@ except that it searches backward and normally leaves point at the | |||
| 162 | beginning of the match. | 167 | beginning of the match. |
| 163 | @end deffn | 168 | @end deffn |
| 164 | 169 | ||
| 170 | @deffn Command word-search-backward-lax string &optional limit noerror repeat | ||
| 171 | This command is identical to @code{word-search-backward}, except that | ||
| 172 | the end of @code{string} need not match a word boundary unless it ends | ||
| 173 | in whitespace. | ||
| 174 | @end deffn | ||
| 175 | |||
| 165 | @node Searching and Case | 176 | @node Searching and Case |
| 166 | @section Searching and Case | 177 | @section Searching and Case |
| 167 | @cindex searching and case | 178 | @cindex searching and case |
| @@ -181,21 +192,11 @@ Buffer-Local}.) Alternatively, you may change the value of | |||
| 181 | @code{case-fold-search} for buffers that do not override it. | 192 | @code{case-fold-search} for buffers that do not override it. |
| 182 | 193 | ||
| 183 | Note that the user-level incremental search feature handles case | 194 | Note that the user-level incremental search feature handles case |
| 184 | distinctions differently. When given a lower case letter, it looks for | 195 | distinctions differently. When the search string contains only lower |
| 185 | a match of either case, but when given an upper case letter, it looks | 196 | case letters, the search ignores case, but when the search string |
| 186 | for an upper case letter only. But this has nothing to do with the | 197 | contains one or more upper case letters, the search becomes |
| 187 | searching functions used in Lisp code. | 198 | case-sensitive. But this has nothing to do with the searching |
| 188 | 199 | functions used in Lisp code. | |
| 189 | @defopt case-replace | ||
| 190 | This variable determines whether the higher level replacement | ||
| 191 | functions should preserve case. If the variable is @code{nil}, that | ||
| 192 | means to use the replacement text verbatim. A non-@code{nil} value | ||
| 193 | means to convert the case of the replacement text according to the | ||
| 194 | text being replaced. | ||
| 195 | |||
| 196 | This variable is used by passing it as an argument to the function | ||
| 197 | @code{replace-match}. @xref{Replacing Match}. | ||
| 198 | @end defopt | ||
| 199 | 200 | ||
| 200 | @defopt case-fold-search | 201 | @defopt case-fold-search |
| 201 | This buffer-local variable determines whether searches should ignore | 202 | This buffer-local variable determines whether searches should ignore |
| @@ -209,12 +210,23 @@ The value of this variable is the default value for | |||
| 209 | same as @code{(default-value 'case-fold-search)}. | 210 | same as @code{(default-value 'case-fold-search)}. |
| 210 | @end defvar | 211 | @end defvar |
| 211 | 212 | ||
| 213 | @defopt case-replace | ||
| 214 | This variable determines whether the higher level replacement | ||
| 215 | functions should preserve case. If the variable is @code{nil}, that | ||
| 216 | means to use the replacement text verbatim. A non-@code{nil} value | ||
| 217 | means to convert the case of the replacement text according to the | ||
| 218 | text being replaced. | ||
| 219 | |||
| 220 | This variable is used by passing it as an argument to the function | ||
| 221 | @code{replace-match}. @xref{Replacing Match}. | ||
| 222 | @end defopt | ||
| 223 | |||
| 212 | @node Regular Expressions | 224 | @node Regular Expressions |
| 213 | @section Regular Expressions | 225 | @section Regular Expressions |
| 214 | @cindex regular expression | 226 | @cindex regular expression |
| 215 | @cindex regexp | 227 | @cindex regexp |
| 216 | 228 | ||
| 217 | A @dfn{regular expression} (@dfn{regexp}, for short) is a pattern that | 229 | A @dfn{regular expression}, or @dfn{regexp} for short, is a pattern that |
| 218 | denotes a (possibly infinite) set of strings. Searching for matches for | 230 | denotes a (possibly infinite) set of strings. Searching for matches for |
| 219 | a regexp is a very powerful operation. This section explains how to write | 231 | a regexp is a very powerful operation. This section explains how to write |
| 220 | regexps; the following section says how to search for them. | 232 | regexps; the following section says how to search for them. |