diff options
| author | Kim F. Storm | 2005-06-22 23:18:45 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-06-22 23:18:45 +0000 |
| commit | d1fab151dfb28b8f423b7cfa35cf5f8e3f731461 (patch) | |
| tree | 95ebab308e2172ae2940e62e396ba920a5be89c5 /lisp | |
| parent | 68be435ea8710d2d8bbac9fbaed911be95f112e0 (diff) | |
| download | emacs-d1fab151dfb28b8f423b7cfa35cf5f8e3f731461.tar.gz emacs-d1fab151dfb28b8f423b7cfa35cf5f8e3f731461.zip | |
(save-match-data): Add comment about using evaporate arg
to set-match-data.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/subr.el | 2 |
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." | |||
| 2020 | '((save-match-data-internal (match-data))) | 2020 | '((save-match-data-internal (match-data))) |
| 2021 | (list 'unwind-protect | 2021 | (list 'unwind-protect |
| 2022 | (cons 'progn body) | 2022 | (cons 'progn body) |
| 2023 | ;; It is safe to free (evaporate) markers immediately here, | ||
| 2024 | ;; as Lisp programs should not copy from save-match-data-internal. | ||
| 2023 | '(set-match-data save-match-data-internal 'evaporate)))) | 2025 | '(set-match-data save-match-data-internal 'evaporate)))) |
| 2024 | 2026 | ||
| 2025 | (defun match-string (num &optional string) | 2027 | (defun match-string (num &optional string) |