[Top][All Lists]

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

Re: Saving match data

From: Michael Heerdegen
Subject: Re: Saving match data
Date: Wed, 28 Sep 2016 22:15:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> > Why don't we just let the programmer explicitly save the match data
> > (e.g. to a symbol) when he is interested in it (FWIW this is already
> > possible with `match-data' and `save-match-data').  That would be more
> > transparent and work around this kind of problem.
> AFAIU, that's exactly what we do now.

I notice I wrote `save-match-data' where I meant `set-match-data',
sorry.  `save-match-data' is the thing I would like to avoid: instead of
an implicit state that is altered as side effect, I want to make uses of
match data explicit e.g. by using a variable.


reply via email to

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