From: Kim F. Storm Date: Wed, 22 Jun 2005 23:18:45 +0000 (+0000) Subject: (save-match-data): Add comment about using evaporate arg X-Git-Tag: emacs-pretest-22.0.90~8735 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d1fab151dfb28b8f423b7cfa35cf5f8e3f731461;p=emacs.git (save-match-data): Add comment about using evaporate arg to set-match-data. --- diff --git a/lisp/subr.el b/lisp/subr.el index 15c23ebc81b..cb8006c10a7 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2020,6 +2020,8 @@ The value returned is the value of the last form in BODY." '((save-match-data-internal (match-data))) (list 'unwind-protect (cons 'progn body) + ;; It is safe to free (evaporate) markers immediately here, + ;; as Lisp programs should not copy from save-match-data-internal. '(set-match-data save-match-data-internal 'evaporate)))) (defun match-string (num &optional string) diff --git a/src/ChangeLog b/src/ChangeLog index 659f1066efc..72890cbc545 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2005-06-23 Kim F. Storm + + * search.c (Fmatch_data): Remove evaporate option. + (Fmatch_data): Do not mention evaporate option in doc string. + Add commentary explaining evaporate arg (for internal use only). + (unwind_set_match_data): Add comment on evaporate use. + 2005-06-22 Miles Bader * xfaces.c (Qvertical_border): Renamed from `Qvertical_divider'.