Article View: gnu.emacs.bug
Article #99968(re-search-forward ... <point t)
From: Stavros Macrakis
Date: Fri, 13 Apr 1990 21:44
Date: Fri, 13 Apr 1990 21:44
23 lines
1158 bytes
1158 bytes
GNU Emacs 18.55.1 of Tue Oct 31 1989 on marat (hpux) Should search_command raise "Invalid search bound (wrong side of point)" even when noerror is t? It means that instead of: (while (re-search-forward thing bound t) ...do some stuff, possibly moving point ... ) you have to write: (while (and (< (point) bound) (re-search-forward thing bound t)) ...do some stuff, possibly moving point ... ) or (save-restriction (narrow... (while ... Can you think of an example where giving the error is a win?
Technical Details
Message-ID:
<9004131343.AA05427@mururoa.imag.fr>Path:
arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!apple!usc!cs.utexas.edu!tut.cis.ohio-state.edu!ri.osf.fr!macrakisShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,83953229d63152b5,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-04-13 14:44:30 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!apple!usc!cs.utexas.edu!tut.cis.ohio-state.edu!ri.osf.fr!macrakis From: macrakis@ri.osf.fr (Stavros Macrakis) Newsgroups: gnu.emacs.bug Subject: (re-search-forward ... <point t) Message-ID: <9004131343.AA05427@mururoa.imag.fr> Date: 13 Apr 90 21:44:30 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 23 Posted: Fri Apr 13 22:44:30 1990