[gnu.emacs.bug] regexp search

al%WEB.Berkeley.EDU@LILAC.BERKELEY.EDU (04/20/89)

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