comparison lisp/simple.el @ 3947:924d8515c250

* simple.el: Add bindings to function-key-map so that the keypad keys act like ordinary self-insertion keys, unless explicitly bound.
author Jim Blandy <jimb@redhat.com>
date Thu, 01 Jul 1993 20:34:13 +0000
parents d42ad851d210
children 42932adb7074
comparison
equal deleted inserted replaced
3946:535f1f575d04 3947:924d8515c250
2180 (list 'interactive prop) 2180 (list 'interactive prop)
2181 'arg)) 2181 'arg))
2182 (eval-minibuffer (format "Set %s to value: " var))))))) 2182 (eval-minibuffer (format "Set %s to value: " var)))))))
2183 (set var val)) 2183 (set var val))
2184 2184
2185
2186 ;;;; Keypad support.
2187
2188 ;;; Make the keypad keys act like ordinary typing keys. If people add
2189 ;;; bindings for the function key symbols, then those bindings will
2190 ;;; override these, so this shouldn't interfere with any existing
2191 ;;; bindings.
2192
2193 (mapcar
2194 (lambda (keypad-normal)
2195 (let ((keypad (nth 0 keypad-normal))
2196 (normal (nth 1 keypad-normal)))
2197 (define-key function-key-map (vector keypad) (vector normal))))
2198 '((kp-0 ?0) (kp-1 ?1) (kp-2 ?2) (kp-3 ?3) (kp-4 ?4)
2199 (kp-5 ?5) (kp-6 ?6) (kp-7 ?7) (kp-8 ?8) (kp-9 ?9)
2200 (kp-space ?\ )
2201 (kp-tab ?\t)
2202 (kp-enter ?\r)
2203 (kp-multiply ?*)
2204 (kp-add ?+)
2205 (kp-separator ?,)
2206 (kp-subtract ?-)
2207 (kp-decimal ?.)
2208 (kp-divide ?/)
2209 (kp-equal ?=)))
2210
2185 ;;; simple.el ends here 2211 ;;; simple.el ends here