]> git.eshelyaron.com Git - emacs.git/commitdiff
Refine documentation of `looking-back'.
authorXue Fuqiao <xfq.free@gmail.com>
Sun, 29 Sep 2013 06:16:45 +0000 (14:16 +0800)
committerXue Fuqiao <xfq.free@gmail.com>
Sun, 29 Sep 2013 06:16:45 +0000 (14:16 +0800)
* lisp/subr.el (looking-back): Do not recommend using looking-back.  (bug#5689)
* doc/lispref/searching.texi (Regexp Search): Refine.

doc/lispref/ChangeLog
doc/lispref/searching.texi
lisp/ChangeLog
lisp/subr.el

index 2fa3fc13e3124b5cdc83aaae759e80b3c84208ac..4a55b17127d88a2eb4cc0580ccea28d3c5ce3870 100644 (file)
@@ -1,3 +1,7 @@
+2013-09-29  Xue Fuqiao  <xfq.free@gmail.com>
+
+       * searching.texi (Regexp Search): Refine.
+
 2013-09-22  Xue Fuqiao  <xfq.free@gmail.com>
 
        * nonascii.texi (Default Coding Systems): Typo fix.
index 386d5bdde4c9a2d7747de7d8f3538bba8445720f..993c2b26772796a38c6a4863caa67b2f2f5dc4d6 100644 (file)
@@ -1146,13 +1146,7 @@ implemented by searching backwards from point for a match that ends at
 point.  That can be quite slow if it has to search a long distance.
 You can bound the time required by specifying @var{limit}, which says
 not to search before @var{limit}.  In this case, the match that is
-found must begin at or after @var{limit}.
-
-If @var{greedy} is non-@code{nil}, this function extends the match
-backwards as far as possible, stopping when a single additional
-previous character cannot be part of a match for regexp.  When the
-match is extended, its starting position is allowed to occur before
-@var{limit}.
+found must begin at or after @var{limit}.  Here's an example:
 
 @example
 @group
@@ -1168,6 +1162,12 @@ comes back" twice.
 @end group
 @end example
 
+If @var{greedy} is non-@code{nil}, this function extends the match
+backwards as far as possible, stopping when a single additional
+previous character cannot be part of a match for regexp.  When the
+match is extended, its starting position is allowed to occur before
+@var{limit}.
+
 @c http://debbugs.gnu.org/5689
 As a general recommendation, try to avoid using @code{looking-back}
 wherever possible, since it is slow.  For this reason, there are no
index 9a04acfa6863fdf021664209a90448a1e0da6f09..9395df089bb50065df0a5c353519b99ad7562a78 100644 (file)
@@ -1,3 +1,7 @@
+2013-09-29  Xue Fuqiao  <xfq.free@gmail.com>
+
+       * subr.el (looking-back): Do not recommend using looking-back.
+
 2013-09-28  Alan Mackenzie  <acm@muc.de>
 
        Fix indentation/fontification of Java enum with "implements".
index 43be9f529befb88d135d41216e9711dcb39001e6..ba240a270641e47c6e7ff9915d32af1e79735346 100644 (file)
@@ -3482,7 +3482,10 @@ If GREEDY is non-nil, extend the match backwards as far as
 possible, stopping when a single additional previous character
 cannot be part of a match for REGEXP.  When the match is
 extended, its starting position is allowed to occur before
-LIMIT."
+LIMIT.
+
+As a general recommendation, try to avoid using `looking-back'
+wherever possible, since it is slow."
   (let ((start (point))
        (pos
         (save-excursion