summaryrefslogtreecommitdiff
path: root/lisp/subr.el
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2005-06-22 23:18:45 +0000
committerKim F. Storm <storm@cua.dk>2005-06-22 23:18:45 +0000
commitd1fab151dfb28b8f423b7cfa35cf5f8e3f731461 (patch)
tree95ebab308e2172ae2940e62e396ba920a5be89c5 /lisp/subr.el
parent68be435ea8710d2d8bbac9fbaed911be95f112e0 (diff)
downloademacs-d1fab151dfb28b8f423b7cfa35cf5f8e3f731461.tar.gz
(save-match-data): Add comment about using evaporate arg
to set-match-data.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el2
1 files changed, 2 insertions, 0 deletions
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)