emacs-devel
[Top][All Lists]
Advanced

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

Re: find-file-noselect needs save-match-data


From: David Kastrup
Subject: Re: find-file-noselect needs save-match-data
Date: Thu, 21 Jun 2007 08:31:17 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux)

"Herbert Euler" <address@hidden> writes:

>>     >>Would someone please implement string-match-p and looking-at-p?
>>     >>(A variable would be more general, but not as simple to use.
>>     >>Its only advantage over save-match-data would be a small speedup.)
>>     >
>>     > Is there somebody working on it?  If not, I would like to start it.
>>
>>     Do you want to work on a new variable?  Since adding `-p' to only two
>>     match functions doesn't make sense.  And adding `-p' to all functions
>>     makes even less sense.
>>
>>For the reasons explained in my words quoted above, I've
>>decided I want the two new functions and NOT the variable.
>
> Last confirming before working: can we implement a new variable at the
> C level and implement the two new functions (possibly as macros) at
> the Lisp level?  This is an eclectic proposal and takes advantages
> from both sides.

Just as a note aside: regular expressions like \(.\)\1 are possible,
so the match data _has_ to be stored somewhere, presumably.  This
might impact the attractiveness of the "C variable" implementation.

-- 
David Kastrup




reply via email to

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