aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kifer1995-07-27 19:41:59 +0000
committerMichael Kifer1995-07-27 19:41:59 +0000
commiteac96cf9b840f12a19a80feb4edddcae01466ddd (patch)
tree4d488e6c504be53be0d3c4e5d0f73c684fe0e380
parent61d0d2548f938dd68d49e3f6b7c9bfc9d679f88a (diff)
downloademacs-eac96cf9b840f12a19a80feb4edddcae01466ddd.tar.gz
emacs-eac96cf9b840f12a19a80feb4edddcae01466ddd.zip
(vip-repeat-from-history-key): new default.
(vip-read-fast-keysequence,ex-unmap-read-args,ex-map-read-args): changed to use vip-read-key.
-rw-r--r--lisp/emulation/viper-macs.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/emulation/viper-macs.el b/lisp/emulation/viper-macs.el
index 5cce77a5874..0f0b0cdba7a 100644
--- a/lisp/emulation/viper-macs.el
+++ b/lisp/emulation/viper-macs.el
@@ -48,7 +48,7 @@
48This also controls ESC-keysequences generated by keyboard function keys.") 48This also controls ESC-keysequences generated by keyboard function keys.")
49 49
50 50
51(defvar vip-repeat-from-history-key 'f1 51(defvar vip-repeat-from-history-key 'f12
52 "Prefix key for invocation of vip-repeat-from-history function, 52 "Prefix key for invocation of vip-repeat-from-history function,
53which repeats previous destructive commands from the history of such 53which repeats previous destructive commands from the history of such
54commands. 54commands.
@@ -154,7 +154,8 @@ a key is a symbol, e.g., `a', `\\1', `f2', etc., or a list, e.g.,
154 (prin1-to-string (vip-display-macro key-seq)) 154 (prin1-to-string (vip-display-macro key-seq))
155 ""))) 155 "")))
156 (message message) 156 (message message)
157 (setq event (vip-read-event)) 157 (setq event (vip-read-key))
158 ;;(setq event (vip-read-event))
158 (setq key 159 (setq key
159 (if (vip-mouse-event-p event) 160 (if (vip-mouse-event-p event)
160 (progn 161 (progn
@@ -228,7 +229,8 @@ a key is a symbol, e.g., `a', `\\1', `f2', etc., or a list, e.g.,
228 (vip-display-macro key-seq)) 229 (vip-display-macro key-seq))
229 ""))) 230 "")))
230 (message message) 231 (message message)
231 (setq event (vip-read-event)) 232 (setq event (vip-read-key))
233 ;;(setq event (vip-read-event))
232 (setq key 234 (setq key
233 (if (vip-mouse-event-p event) 235 (if (vip-mouse-event-p event)
234 (progn 236 (progn
@@ -250,7 +252,6 @@ a key is a symbol, e.g., `a', `\\1', `f2', etc., or a list, e.g.,
250 )) 252 ))
251 253
252 254
253
254(defun vip-end-mapping-kbd-macro (&optional ignore) 255(defun vip-end-mapping-kbd-macro (&optional ignore)
255 "Terminate kbd macro." 256 "Terminate kbd macro."
256 (interactive) 257 (interactive)
@@ -848,7 +849,8 @@ there."
848 next-event) 849 next-event)
849 (while (and (vip-fast-keysequence-p) 850 (while (and (vip-fast-keysequence-p)
850 (vip-keyseq-is-a-possible-macro lis macro-alist)) 851 (vip-keyseq-is-a-possible-macro lis macro-alist))
851 (setq next-event (vip-read-event)) 852 (setq next-event (vip-read-key))
853 ;;(setq next-event (vip-read-event))
852 (or (vip-mouse-event-p next-event) 854 (or (vip-mouse-event-p next-event)
853 (setq lis (vconcat lis (vector next-event))))) 855 (setq lis (vconcat lis (vector next-event)))))
854 lis)) 856 lis))