[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:42:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> > `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.
> Why? what would that gain us?

Not having the need to protect match data to be lost, and not having to
care about which functions may change the match data, and which can be
guaranteed to not change match data.  That would be irrelevant.  You
would bind the match data to a variable directly when it is produced,
and refer to it later by that variable name.  That would be more
transparent, and spare us to invest either a large amount of work, or
make Emacs slower.


reply via email to

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