From: Juanma Barranquero Date: Mon, 25 Feb 2002 17:44:03 +0000 (+0000) Subject: (save-match-data): Doc fix. X-Git-Tag: ttn-vms-21-2-B4~16480 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e4d03691de36a4b44508225c87a5d23ad8e93b61;p=emacs.git (save-match-data): Doc fix. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8ffbb241804..08fdaf06a7b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -5,6 +5,8 @@ 2002-02-25 Juanma Barranquero + * subr.el (save-match-data): Doc fix. + * ielm.el (ielm-prompt): Allow customization; make it read-only. 2002-02-25 Kim F. Storm @@ -18,7 +20,7 @@ (inferior-emacs-lisp-mode): Make it buffer-local. (ielm-eval-input): Use it to preserve match-data between inputs. -2002-02-24 Juanma Barranquero +2002-02-24 Juanma Barranquero * ielm.el (inferior-emacs-lisp-mode): Use hexl for the dummy process. diff --git a/lisp/subr.el b/lisp/subr.el index 4f2b7572861..210a8f571ce 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1452,7 +1452,8 @@ Value is what BODY returns." ;; 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.