emacs-devel
[Top][All Lists]
Advanced

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

Re: Inefficient code in reftex-index.el


From: Stefan Monnier
Subject: Re: Inefficient code in reftex-index.el
Date: Tue, 07 Jun 2005 14:11:02 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> In any case, to me, the match-data interface should not be considered
> a user-level feature _at all_.  The user level feature is
> save-match-data, which does not (in principle) allow the user to mess
> with the saved data.  And in that respect, nobody should really care
> about what the format of the match data is.

Not sure about `match-data', but `set-match-data' is definitely useful for
cases like font-lock where the MATCHER function is expected to return its
info in the match-data but there may not be any regexp that properly matches
what we're looking for, so the MATCHER function needs to do the match "by
hand" and then manually construct a match data to pass to set-match-data.
See smerge-mode for an example.


        Stefan




reply via email to

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