Article View: gnu.emacs.bug
Article #1617regexp search
From: al%WEB.Berkeley.EDU
Date: Thu, 20 Apr 1989 07:06
Date: Thu, 20 Apr 1989 07:06
31 lines
1231 bytes
1231 bytes
Using GNU Emacs 18.53.1 of Fri Mar 10 1989 on tuna (berkeley-unix): With point at the beginning of a buffer with the following contents: *** The next line is the first line of the buffer I'm talking about foo foo z bar blah blah blah blah blah z afterblah *** The previous line was the (newline-terminated) last line of the buffer. (re-search-forward "\\(\n\\|\\([^\nz].*\n\\)\\)*") leaves point at the beginning of the last line. This is the first line that starts with "z", which was the intent of the regexp. But when I increase the number of blahs to 425 or more, the same search leaves point before the 'z' in the middle of the second line. I think this is the wrong behavior. Please tell me if I'm just being stupid. Respectfully submitted, al@web.berkeley.edu
Technical Details
Message-ID:
<8904200706.AA05073@web-4c.berkeley.edu>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!LILAC.BERKELEY.EDU!al%WEB.Berkeley.EDUShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!LILAC.BERKELEY.EDU!al%WEB.Berkeley.EDU From: al%WEB.Berkeley.EDU@LILAC.BERKELEY.EDU Newsgroups: gnu.emacs.bug Subject: regexp search Message-ID: <8904200706.AA05073@web-4c.berkeley.edu> Date: 20 Apr 89 07:06:30 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 31