bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1299: marked as done (lispref - searching.texi: Updating of looking


From: Emacs bug Tracking System
Subject: bug#1299: marked as done (lispref - searching.texi: Updating of looking-back arguments and return values in the example)
Date: Mon, 3 Nov 2008 11:30:03 -0800

Your message dated Mon, 03 Nov 2008 14:21:31 -0500
with message-id <87abcgk43o.fsf@cyd.mit.edu>
and subject line Re: bug#1299: lispref - searching.texi: Updating of 
looking-back arguments and return values in the example
has caused the Emacs bug report #1299,
regarding lispref - searching.texi: Updating of looking-back arguments and 
return values in the example
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
1299: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1299
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems
--- Begin Message --- Subject: lispref - searching.texi: Updating of looking-back arguments and return values in the example Date: Sun, 02 Nov 2008 20:06:29 +0100 User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

See the diff attached. Note that I copied the explanation for greedy
argument of `looking-back' function. Because I'm not a native speaker
so probably this paragraph requires some rephrasing. 

diff -ud /home/sewi/emacs_cvs/emacs/doc/lispref/searching.texi 
/home/sewi/emacs_cvs/emacs/doc/lispref/searching_cor.texi
--- /home/sewi/zrodla/elisp_files/emacs_cvs/emacs/doc/lispref/searching.texi    
2008-11-02 19:39:21.000000000 +0100
+++ 
/home/sewi/zrodla/elisp_files/emacs_cvs/emacs/doc/lispref/searching_cor.texi    
    2008-11-02 19:54:10.000000000 +0100
@@ -1094,7 +1094,7 @@
 @end example
 @end defun
 
-@defun looking-back regexp &optional limit
+@defun looking-back regexp &optional limit greedy
 This function returns @code{t} if @var{regexp} matches text before
 point, ending at point, and @code{nil} otherwise.
 
@@ -1105,6 +1105,10 @@
 not to search before @var{limit}.  In this case, the match that is
 found must begin at or after @var{limit}.
 
+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.
+
 @example
 @group
 ---------- Buffer: foo ----------
@@ -1408,7 +1412,7 @@
   (re-search-forward "The \\(cat \\)")
   (match-beginning 0)
   (match-beginning 1))
-    @result{} (9 9 13)
+    @result{} (17 9 13)
 @end group
 
 @group

Diff finished.  Sun Nov  2 19:54:17 2008
-- 
regards,
Seweryn Kokot

--- End Message ---
--- Begin Message --- Subject: Re: bug#1299: lispref - searching.texi: Updating of looking-back arguments and return values in the example Date: Mon, 03 Nov 2008 14:21:31 -0500
Seweryn Kokot <sewkokot@gmail.com> wrote:

> See the diff attached. Note that I copied the explanation for greedy
> argument of `looking-back' function.

Thanks.  I've checked in your patch with some minor modifications.


martin rudalics <rudalics@gmx.at> wrote:

> FWIW, it might not harm to also resolve the contradiction that REGEXP
> can match _before_ LIMIT when GREEDY is non-nil (in the manual _and_
> the doc-string).

I noted this in the manual and the doc-string.  Thanks.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]