diff options
| author | Xue Fuqiao | 2013-09-29 14:16:45 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-09-29 14:16:45 +0800 |
| commit | 6cfe977d9f4cc0ac1321ef25a18c4f2a7d5fb9b1 (patch) | |
| tree | 8d4045e2b31196aca411eebdaf194a61e2fca38b /doc | |
| parent | 4ec3c26861690141a17134cba95315353573c8b6 (diff) | |
| download | emacs-6cfe977d9f4cc0ac1321ef25a18c4f2a7d5fb9b1.tar.gz emacs-6cfe977d9f4cc0ac1321ef25a18c4f2a7d5fb9b1.zip | |
Refine documentation of `looking-back'.
* lisp/subr.el (looking-back): Do not recommend using looking-back. (bug#5689)
* doc/lispref/searching.texi (Regexp Search): Refine.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/searching.texi | 14 |
2 files changed, 11 insertions, 7 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 2fa3fc13e31..4a55b17127d 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-09-29 Xue Fuqiao <xfq.free@gmail.com> | ||
| 2 | |||
| 3 | * searching.texi (Regexp Search): Refine. | ||
| 4 | |||
| 1 | 2013-09-22 Xue Fuqiao <xfq.free@gmail.com> | 5 | 2013-09-22 Xue Fuqiao <xfq.free@gmail.com> |
| 2 | 6 | ||
| 3 | * nonascii.texi (Default Coding Systems): Typo fix. | 7 | * nonascii.texi (Default Coding Systems): Typo fix. |
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index 386d5bdde4c..993c2b26772 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi | |||
| @@ -1146,13 +1146,7 @@ implemented by searching backwards from point for a match that ends at | |||
| 1146 | point. That can be quite slow if it has to search a long distance. | 1146 | point. That can be quite slow if it has to search a long distance. |
| 1147 | You can bound the time required by specifying @var{limit}, which says | 1147 | You can bound the time required by specifying @var{limit}, which says |
| 1148 | not to search before @var{limit}. In this case, the match that is | 1148 | not to search before @var{limit}. In this case, the match that is |
| 1149 | found must begin at or after @var{limit}. | 1149 | found must begin at or after @var{limit}. Here's an example: |
| 1150 | |||
| 1151 | If @var{greedy} is non-@code{nil}, this function extends the match | ||
| 1152 | backwards as far as possible, stopping when a single additional | ||
| 1153 | previous character cannot be part of a match for regexp. When the | ||
| 1154 | match is extended, its starting position is allowed to occur before | ||
| 1155 | @var{limit}. | ||
| 1156 | 1150 | ||
| 1157 | @example | 1151 | @example |
| 1158 | @group | 1152 | @group |
| @@ -1168,6 +1162,12 @@ comes back" twice. | |||
| 1168 | @end group | 1162 | @end group |
| 1169 | @end example | 1163 | @end example |
| 1170 | 1164 | ||
| 1165 | If @var{greedy} is non-@code{nil}, this function extends the match | ||
| 1166 | backwards as far as possible, stopping when a single additional | ||
| 1167 | previous character cannot be part of a match for regexp. When the | ||
| 1168 | match is extended, its starting position is allowed to occur before | ||
| 1169 | @var{limit}. | ||
| 1170 | |||
| 1171 | @c http://debbugs.gnu.org/5689 | 1171 | @c http://debbugs.gnu.org/5689 |
| 1172 | As a general recommendation, try to avoid using @code{looking-back} | 1172 | As a general recommendation, try to avoid using @code{looking-back} |
| 1173 | wherever possible, since it is slow. For this reason, there are no | 1173 | wherever possible, since it is slow. For this reason, there are no |