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: Marcin Borkowski
Subject: Re: Why does save-match-data do what it does?
Date: Wed, 07 Mar 2018 11:40:02 +0100
User-agent: mu4e 1.1.0; emacs 27.0.50

On 2018-03-07, at 10:55, Robert Pluim <rpluim@gmail.com> wrote:

> 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?

What is the offical ascii art for a person clapping their forehead with
their palm?

Thanks!

-- 
Marcin Borkowski
http://mbork.pl



reply via email to

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