diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/search.c | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9d37a04da2c..7222cfb9dd4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-01-26 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * search.c (Fsearch_forward, Fsearch_backward): Document negative | ||
| 4 | repeat counts (Bug#10507). | ||
| 5 | |||
| 1 | 2012-01-26 Glenn Morris <rgm@gnu.org> | 6 | 2012-01-26 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * lread.c (syms_of_lread): Doc fix. | 8 | * lread.c (syms_of_lread): Doc fix. |
diff --git a/src/search.c b/src/search.c index 67323b3c6e7..55a6d893479 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -2181,7 +2181,9 @@ An optional second argument bounds the search; it is a buffer position. | |||
| 2181 | The match found must not extend before that position. | 2181 | The match found must not extend before that position. |
| 2182 | Optional third argument, if t, means if fail just return nil (no error). | 2182 | Optional third argument, if t, means if fail just return nil (no error). |
| 2183 | If not nil and not t, position at limit of search and return nil. | 2183 | If not nil and not t, position at limit of search and return nil. |
| 2184 | Optional fourth argument is repeat count--search for successive occurrences. | 2184 | Optional fourth argument COUNT, if non-nil, means to search for COUNT |
| 2185 | successive occurrences. If COUNT is negative, search forward, | ||
| 2186 | instead of backward, for -COUNT occurrences. | ||
| 2185 | 2187 | ||
| 2186 | Search case-sensitivity is determined by the value of the variable | 2188 | Search case-sensitivity is determined by the value of the variable |
| 2187 | `case-fold-search', which see. | 2189 | `case-fold-search', which see. |
| @@ -2200,7 +2202,9 @@ The match found must not extend after that position. A value of nil is | |||
| 2200 | equivalent to (point-max). | 2202 | equivalent to (point-max). |
| 2201 | Optional third argument, if t, means if fail just return nil (no error). | 2203 | Optional third argument, if t, means if fail just return nil (no error). |
| 2202 | If not nil and not t, move to limit of search and return nil. | 2204 | If not nil and not t, move to limit of search and return nil. |
| 2203 | Optional fourth argument is repeat count--search for successive occurrences. | 2205 | Optional fourth argument COUNT, if non-nil, means to search for COUNT |
| 2206 | successive occurrences. If COUNT is negative, search backward, | ||
| 2207 | instead of forward, for -COUNT occurrences. | ||
| 2204 | 2208 | ||
| 2205 | Search case-sensitivity is determined by the value of the variable | 2209 | Search case-sensitivity is determined by the value of the variable |
| 2206 | `case-fold-search', which see. | 2210 | `case-fold-search', which see. |