emacs-devel
[Top][All Lists]
Advanced

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

Re: save-match-data's return value


From: Stefan Monnier
Subject: Re: save-match-data's return value
Date: Tue, 19 Feb 2002 11:27:28 -0500

> save-match-data is implemented via unwind-protect and progn; however,
> its docstring does not make any reference regarding the value returned
> after its execution, though presumably it'll be the last form in BODY,
> as in with-temp-buffer, et al.
> 
> Is that a part of the interface of save-match-data, and should be
> documented, or does it specifically *no* guarantee about the value it
> returns?

Lots of Emacs code relies on it and there is no other meaningful
value to return, so it's just an omission in the documentation.

AFAIK This behavior is shared by all `save-*' and `with-*' macros
and special forms.


        Stefan




reply via email to

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