mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
* lisp/bindings.el: Put `ascii-character' property on keypad keys mapped to characters.
Fixes: debbugs:17759
This commit is contained in:
parent
78275cd0ed
commit
5be5f2854a
2 changed files with 13 additions and 4 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2014-06-14 Juri Linkov <juri@jurta.org>
|
||||
|
||||
* bindings.el: Put `ascii-character' property on keypad keys
|
||||
mapped to characters. (Bug#17759)
|
||||
|
||||
2014-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* emacs-lisp/smie.el (smie-next-sexp): Fix up "other-end" info when
|
||||
|
|
|
|||
|
|
@ -1075,10 +1075,14 @@ if `inhibit-field-text-motion' is non-nil."
|
|||
(kp-5 ?5) (kp-6 ?6) (kp-7 ?7) (kp-8 ?8) (kp-9 ?9)
|
||||
(kp-add ?+) (kp-subtract ?-) (kp-multiply ?*) (kp-divide ?/))))
|
||||
(dolist (pair keys)
|
||||
(dolist (mod modifiers)
|
||||
(define-key function-key-map
|
||||
(vector (append mod (list (nth 0 pair))))
|
||||
(vector (append mod (list (nth 1 pair))))))))
|
||||
(let ((keypad (nth 0 pair))
|
||||
(normal (nth 1 pair)))
|
||||
(when (characterp normal)
|
||||
(put keypad 'ascii-character normal))
|
||||
(dolist (mod modifiers)
|
||||
(define-key function-key-map
|
||||
(vector (append mod (list keypad)))
|
||||
(vector (append mod (list normal))))))))
|
||||
|
||||
(define-key function-key-map [backspace] [?\C-?])
|
||||
(define-key function-key-map [delete] [?\C-?])
|
||||
|
|
|
|||
Loading…
Reference in a new issue