Commit ecc06779 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(save-match-data): Fix previous change.

parent 7fd5b62d
......@@ -748,10 +748,10 @@ Wildcards and redirection are handled as usual in the shell."
;; now, but it generates slower code.
(defmacro save-match-data (&rest body)
"Execute the BODY forms, restoring the global value of the match data."
`(let ((save-match-data-variable '(match-data)))
`(let ((save-match-data-internal '(match-data)))
(unwind-protect
(progn ,@body)
(store-match-data save-match-data-variable)))))
(store-match-data save-match-data-internal))))
(defun match-string (num &optional string)
"Return string of text matched by last search.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment