diff lisp/subr.el @ 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 ec5194493ae9
children f14d5e7e60e1 d07fdd5d7d4e b7da78284d4c
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)