Mercurial > emacs
diff lisp/replace.el @ 17933:a7579056d62e
(perform-replace): Restore match data after read-event.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Fri, 23 May 1997 17:34:11 +0000 |
| parents | d8cb277f0ce8 |
| children | 1de7cef26431 |
line wrap: on
line diff
--- a/lisp/replace.el Fri May 23 17:33:32 1997 +0000 +++ b/lisp/replace.el Fri May 23 17:34:11 1997 +0000 @@ -646,6 +646,9 @@ (let ((message-log-max nil)) (message message from-string next-replacement)) (setq key (read-event)) + ;; Necessary in case something happens during read-event + ;; that clobbers the match data. + (store-match-data real-match-data) (setq key (vector key)) (setq def (lookup-key map key)) ;; Restore the match data while we process the command.
