mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-22 04:47:34 +00:00
(save-match-data): Fix previous change.
This commit is contained in:
parent
7fd5b62d23
commit
ecc0677980
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue