mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-21 21:41:40 -07:00
(perform-replace): Restore match data after read-event.
This commit is contained in:
parent
6418ea1619
commit
f5e52cd303
1 changed files with 3 additions and 0 deletions
|
|
@ -646,6 +646,9 @@ which will run faster and probably do exactly what you want."
|
|||
(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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue