comparison lisp/replace.el @ 1620:787f816e1f4b

* bytecomp.el: Declare unread-command-char an obsolete variable. * vip.el (vip-escape-to-emacs, vip-prefix-arg-value, vip-prefix-arg-com): Use unread-command-event instead of unread-command-char; respect its new semantics. * replace.el (perform-replace): Same.
author Jim Blandy <jimb@redhat.com>
date Mon, 16 Nov 1992 01:40:51 +0000
parents c49077849583
children b95bdb97c3e8
comparison
equal deleted inserted replaced
1619:6147d2164331 1620:787f816e1f4b
441 (setq char help-char) 441 (setq char help-char)
442 (while (or (not (numberp char)) (= char help-char)) 442 (while (or (not (numberp char)) (= char help-char))
443 (message "Query replacing %s with %s: " from-string next-replacement) 443 (message "Query replacing %s with %s: " from-string next-replacement)
444 (setq char (read-event)) 444 (setq char (read-event))
445 (if (and (numberp char) (= char ??)) 445 (if (and (numberp char) (= char ??))
446 (setq unread-command-char help-char char help-char)))) 446 (setq unread-command-event help-char char help-char))))
447 ;; Restore the match data while we process the command. 447 ;; Restore the match data while we process the command.
448 (store-match-data real-match-data) 448 (store-match-data real-match-data)
449 (cond ((or (= char ?\e) 449 (cond ((or (= char ?\e)
450 (= char ?q)) 450 (= char ?q))
451 (setq keep-going nil) 451 (setq keep-going nil)
496 (prog1 (match-data) 496 (prog1 (match-data)
497 (save-excursion (recursive-edit)))) 497 (save-excursion (recursive-edit))))
498 (setq replaced t)) 498 (setq replaced t))
499 (t 499 (t
500 (setq keep-going nil) 500 (setq keep-going nil)
501 (setq unread-command-char char) 501 (setq unread-command-event char)
502 (setq done t)))) 502 (setq done t))))
503 ;; Record previous position for ^ when we move on. 503 ;; Record previous position for ^ when we move on.
504 ;; Change markers to numbers in the match data 504 ;; Change markers to numbers in the match data
505 ;; since lots of markers slow down editing. 505 ;; since lots of markers slow down editing.
506 (setq stack 506 (setq stack