aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorXue Fuqiao2013-09-29 14:16:45 +0800
committerXue Fuqiao2013-09-29 14:16:45 +0800
commit6cfe977d9f4cc0ac1321ef25a18c4f2a7d5fb9b1 (patch)
tree8d4045e2b31196aca411eebdaf194a61e2fca38b /doc
parent4ec3c26861690141a17134cba95315353573c8b6 (diff)
downloademacs-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/ChangeLog4
-rw-r--r--doc/lispref/searching.texi14
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 @@
12013-09-29 Xue Fuqiao <xfq.free@gmail.com>
2
3 * searching.texi (Regexp Search): Refine.
4
12013-09-22 Xue Fuqiao <xfq.free@gmail.com> 52013-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
1146point. That can be quite slow if it has to search a long distance. 1146point. That can be quite slow if it has to search a long distance.
1147You can bound the time required by specifying @var{limit}, which says 1147You can bound the time required by specifying @var{limit}, which says
1148not to search before @var{limit}. In this case, the match that is 1148not to search before @var{limit}. In this case, the match that is
1149found must begin at or after @var{limit}. 1149found must begin at or after @var{limit}. Here's an example:
1150
1151If @var{greedy} is non-@code{nil}, this function extends the match
1152backwards as far as possible, stopping when a single additional
1153previous character cannot be part of a match for regexp. When the
1154match 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
1165If @var{greedy} is non-@code{nil}, this function extends the match
1166backwards as far as possible, stopping when a single additional
1167previous character cannot be part of a match for regexp. When the
1168match 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
1172As a general recommendation, try to avoid using @code{looking-back} 1172As a general recommendation, try to avoid using @code{looking-back}
1173wherever possible, since it is slow. For this reason, there are no 1173wherever possible, since it is slow. For this reason, there are no