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: Juanma Barranquero
Subject: Re: save-match-data's return value
Date: Tue, 19 Feb 2002 18:06:57 +0100

On Tue, 19 Feb 2002 11:27:28 -0500, "Stefan Monnier" 
<monnier+gnu/address@hidden> wrote:

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

I supposed as much.

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

Yes, I know, that's why I mentioned with-temp-buffer.


                                                           /L/e/k/t/u


2002-02-19  Juanma Barranquero  <address@hidden>

        * subr.el (save-match-data): Doc fix.

Index: subr.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/subr.el,v
retrieving revision 1.287
diff -u -b -r1.287 subr.el
--- subr.el     6 Feb 2002 23:05:44 -0000       1.287
+++ subr.el     19 Feb 2002 17:04:59 -0000
@@ -1450,7 +1450,8 @@
 ;; We used to use an uninterned symbol; the compiler handles that properly
 ;; now, but it generates slower code.
 (defmacro save-match-data (&rest body)
-  "Execute the BODY forms, restoring the global value of the match data."
+  "Execute the BODY forms, restoring the global value of the match data.
+The value returned is the value of the last form in BODY."
   ;; It is better not to use backquote here,
   ;; because that makes a bootstrapping problem
   ;; if you need to recompile all the Lisp files using interpreted code.




reply via email to

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