help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: `looking-back' strange warning


From: Tom Tromey
Subject: Re: `looking-back' strange warning
Date: Fri, 02 Oct 2015 13:08:06 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> writes:

Stefan> You can pass (point-min) for the limit if that's what you want.
Stefan> Making it optional Encourages people to think that looking-at is just
Stefan> like looking-back, with the same performance characteristic, whereas
Stefan> making it mandatory encourages people to put a reasonable limit and
Stefan> hence avoid pathological behavior at the end of large buffers.

It could be made faster by reversing the regexp, then adding a mode to
regex.c to consider characters from the buffer in the reverse order.
Then the limit could remain optional.

Tom



reply via email to

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