From d1fab151dfb28b8f423b7cfa35cf5f8e3f731461 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Wed, 22 Jun 2005 23:18:45 +0000 Subject: [PATCH] (save-match-data): Add comment about using evaporate arg to set-match-data. --- lisp/subr.el | 2 ++ src/ChangeLog | 7 +++++++ 2 files changed, 9 insertions(+) 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'. -- 2.39.2