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

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

Elisp info pages: incomplete description of search-forward


From: Alan Mackenzie
Subject: Elisp info pages: incomplete description of search-forward
Date: 6 Dec 2001 22:49:53 +0100
Date: Thu, 6 Dec 2001 19:12:03 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

In the description of search-forward (on the page "String Search") in the
elisp manual, appears the following:

     If REPEAT is supplied (it must be a positive number), then the
     search is repeated that many times (each time starting at the end
     of the previous time's match).  If these successive searches
     succeed, the function succeeds, moving point and returning its new
     value.  Otherwise the search fails.

I think the last sentence should read "Otherwise the search fails,
LEAVING POINT UNMOVED."  The other candidate for the Right Thing would
have been to leave point after the last occurence of STRING.

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove one of them (leaving, say, "a").




reply via email to

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