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: Tassilo Horn
Subject: Re: `looking-back' strange warning
Date: Thu, 01 Oct 2015 10:20:25 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Andreas Röhler <andreas.roehler@easy-emacs.de> writes:

>>> Docu bug?
>>
>> It's a feature: calling `looking-back' without LIMIT is slow, don't do that.
>
> Hmm, would volontier to make that fast instead - if write-permission
> is given :)

Looking at the code, I'd say `looking-back' is only slow if GREEDY is t
in which case the start of the match may be before LIMIT anyhow.  So I
don't see how providing a LIMIT would help too much, or is
`re-search-backward' already slow without LIMIT?  If so, then its own
documentation should tell so, too.

Bye,
Tassilo



reply via email to

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