emacs-devel
[Top][All Lists]
Advanced

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

Re: Bug: 22.1.50.3; re-search-backward disobeys greedy regexps


From: Stefan Monnier
Subject: Re: Bug: 22.1.50.3; re-search-backward disobeys greedy regexps
Date: Wed, 15 Aug 2007 20:49:46 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> The funcion re-search-backward does not search greedy regexps (if
> non-greedy are matching).

Yes and no.  It's a known problem: regexp search is split into 2 parts:
search and match.  While the "search" can be done in both directions, the
"match" part is only implemented forward.  Which is why `looking-at' (which
only does "match" without any "search") only exists forward (and
looking-back-at is just an attempt to simulate the backward "match" but only
works correctly in specific circumstances).


        Stefan




reply via email to

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