aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/double.el
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-02 18:27:24 +0000
committerRichard M. Stallman1994-05-02 18:27:24 +0000
commitf55e5c6be159b752c8caec33f3e44cef2de2d001 (patch)
treeb8489a19e041f69adef8e4d40f536994ca638ba2 /lisp/double.el
parentd43e0b1674f5d7250b5e452e78d64cc048d8f9d3 (diff)
downloademacs-f55e5c6be159b752c8caec33f3e44cef2de2d001.tar.gz
emacs-f55e5c6be159b752c8caec33f3e44cef2de2d001.zip
(double-translate-key): Changed 'delete to 127 to make
the non-X11 version work.
Diffstat (limited to 'lisp/double.el')
-rw-r--r--lisp/double.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/double.el b/lisp/double.el
index e0e3071463d..4de4b8a1dd8 100644
--- a/lisp/double.el
+++ b/lisp/double.el
@@ -85,12 +85,12 @@ Each entry is a list with three elements:
85 (message "")) 85 (message ""))
86 (read-event))) 86 (read-event)))
87 87
88(global-set-key [ ignore ] '(lambda () (interactive))) 88(global-set-key [ignore] '(lambda () (interactive)))
89 89
90(or (boundp 'isearch-mode-map) 90(or (boundp 'isearch-mode-map)
91 (load-library "isearch")) 91 (load-library "isearch"))
92 92
93(define-key isearch-mode-map [ ignore ] 93(define-key isearch-mode-map [ignore]
94 (function (lambda () (interactive) (isearch-update)))) 94 (function (lambda () (interactive) (isearch-update))))
95 95
96(defun double-translate-key (prompt) 96(defun double-translate-key (prompt)
@@ -107,15 +107,15 @@ Each entry is a list with three elements:
107 (progn 107 (progn
108 (setq unread-command-events 108 (setq unread-command-events
109 (append (make-list (1- (length (nth 1 entry))) 109 (append (make-list (1- (length (nth 1 entry)))
110 'delete) 110 127)
111 (nth 2 entry) 111 (nth 2 entry)
112 '(magic-end))) 112 '(magic-end)))
113 (vector 127)) 113 (vector 127))
114 (setq unread-command-events (list new)) 114 (setq unread-command-events (list new))
115 [ ignore ]))) 115 [ignore])))
116 ((eq key 'magic-end) 116 ((eq key 'magic-end)
117 ;; End of double event. Ignore. 117 ;; End of double event. Ignore.
118 [ ignore ]) 118 [ignore])
119 (t 119 (t
120 ;; New key. 120 ;; New key.
121 (let ((exp (nth 1 (assoc key double-map)))) 121 (let ((exp (nth 1 (assoc key double-map))))