changeset 63664:f29e9a430d73

(save-match-data): Add comment about using evaporate arg to set-match-data.
author Kim F. Storm <storm@cua.dk>
date Wed, 22 Jun 2005 23:16:59 +0000
parents c4d74e911908
children 9871a1fc024c
files lisp/subr.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Wed Jun 22 23:15:47 2005 +0000
+++ b/lisp/subr.el	Wed Jun 22 23:16:59 2005 +0000
@@ -2020,6 +2020,8 @@
 	'((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)