help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Why does save-match-data do what it does?


From: Robert Pluim
Subject: Re: Why does save-match-data do what it does?
Date: Wed, 07 Mar 2018 10:55:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux)

Marcin Borkowski <mbork@mbork.pl> writes:

> Hi all,
>
> save-match-data works by assigning the current match data to a temporary
> variable, doing its stuff and restoring it again.  Why not this?
>
> (defmacro save-match-data-icmd (&rest body)
>   "An alternative definition of `save-match-data'."
>   (declare (indent 0) (debug t))
>   `(let ((inhibit-changing-match-data t))
>      ,@body))

What if body want to use match data?

Robert



reply via email to

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