aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kifer1996-07-01 02:34:51 +0000
committerMichael Kifer1996-07-01 02:34:51 +0000
commit20626291f6e7f622ed279fccce7db6b49b013261 (patch)
tree808f024bcb32b19029c9fed6de7ba5153b711fd7
parent5ccf5115e08ef7145def056d19ad82b60c7e399f (diff)
downloademacs-20626291f6e7f622ed279fccce7db6b49b013261.tar.gz
emacs-20626291f6e7f622ed279fccce7db6b49b013261.zip
(vip-read-key): inhibit quit added.
-rw-r--r--lisp/emulation/viper-util.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el
index 033e31c3fff..33f9dfc0c35 100644
--- a/lisp/emulation/viper-util.el
+++ b/lisp/emulation/viper-util.el
@@ -194,7 +194,10 @@ that Viper doesn't know about.")
194 (eq (device-class (selected-device)) 'color))) 194 (eq (device-class (selected-device)) 'color)))
195 195
196(defsubst vip-get-cursor-color () 196(defsubst vip-get-cursor-color ()
197 (cdr (assoc 'cursor-color (frame-parameters)))) 197 (if vip-emacs-p
198 (cdr (assoc 'cursor-color (frame-parameters)))
199 (color-instance-name (frame-property (selected-frame) 'cursor-color))))
200
198 201
199;; OS/2 202;; OS/2
200(cond ((eq (vip-device-type) 'pm) 203(cond ((eq (vip-device-type) 'pm)
@@ -934,15 +937,17 @@ to write a custom function, similar to `vip-ex-nontrivial-find-file-unix'."
934 937
935;; This function lets function-key-map convert key sequences into logical 938;; This function lets function-key-map convert key sequences into logical
936;; keys. This does a better job than vip-read-event when it comes to kbd 939;; keys. This does a better job than vip-read-event when it comes to kbd
937;; macros, since it enables certain macros to be shared between X and TTY 940;; macros, since it enables certain macros to be shared between X and TTY modes
938;; modes. 941;; by correctly mapping key sequences for Left/Right/... (one an ascii
942;; terminal) into logical keys left, right, etc.
939(defun vip-read-key () 943(defun vip-read-key ()
940 (let ((overriding-local-map vip-overriding-map) 944 (let ((overriding-local-map vip-overriding-map)
945 (inhibit-quit t)
941 key) 946 key)
942 (use-global-map vip-overriding-map) 947 (use-global-map vip-overriding-map)
943 (setq key (elt (read-key-sequence nil) 0)) 948 (setq key (elt (read-key-sequence nil) 0))
944 (use-global-map global-map) 949 (use-global-map global-map)
945 key)) 950 key))
946 951
947 952
948;; Emacs has a bug in eventp, which causes (eventp nil) to return (nil) 953;; Emacs has a bug in eventp, which causes (eventp nil) to return (nil)