all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* re-search-backward doesn't return
@ 2004-03-12 20:43 Martin Schwamberger
  2004-03-15  4:56 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Schwamberger @ 2004-03-12 20:43 UTC (permalink / raw)


Hi,

this might be a bug.
re-search-backward never returns in the following expression:

(with-temp-buffer
   (insert "new Test1() { public void f(final int i)")
   (re-search-backward "\\([a-z (]*\\)*ne" (point-min) t))

I'm using

GNU Emacs 21.3.1 (i386-msvc-nt4.0.1381) of 2003-03-28 on buffy

Regards,

Martin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: re-search-backward doesn't return
  2004-03-12 20:43 re-search-backward doesn't return Martin Schwamberger
@ 2004-03-15  4:56 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2004-03-15  4:56 UTC (permalink / raw)
  Cc: bug-gnu-emacs

       (re-search-backward "\\([a-z (]*\\)*ne" (point-min) t))

The problem is a repetition operator inside a repetition operator.
That regexp can match the null string in infinitely many different
ways, so it causes an infinite loop.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-15  4:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-12 20:43 re-search-backward doesn't return Martin Schwamberger
2004-03-15  4:56 ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.