all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Wrong keypad bindings for some keys in emacs 23.1 under CentOS 6
@ 2011-12-13 19:07 Bryan Wright
  2011-12-13 21:37 ` Philipp Haselwarter
  0 siblings, 1 reply; 3+ messages in thread
From: Bryan Wright @ 2011-12-13 19:07 UTC (permalink / raw)
  To: help-gnu-emacs

Hi folks,

     I'm preparing to transition some machines from CentOS 5.7 (with emacs 21.4)
to CentOS 6 (with emacs 23.1).  Some of our users rely on using the non-window
version of emacs and the tpu-edt package, which makes use of the keypad keys.

     I find that emacs 23.1 under CentOS 6 has some mistakes in the key bindings
for the keypad.  For example, the escape sequence "\eOQ" should be bound to 
[kp-f2], but it's really bound to [f2], and the sequence "\eOn" should be bound
to [kp-decimal], but it's not bound to anything at all.

     Can anybody point me to a quick way to remap these keys?  I've been playing
around with "define-key" and "global-set-key", but haven't had any luck yet.

                               Thanks in advance,
                               Bryan





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wrong keypad bindings for some keys in emacs 23.1 under CentOS 6
  2011-12-13 19:07 Wrong keypad bindings for some keys in emacs 23.1 under CentOS 6 Bryan Wright
@ 2011-12-13 21:37 ` Philipp Haselwarter
  2011-12-14 15:54   ` Bryan Wright
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Haselwarter @ 2011-12-13 21:37 UTC (permalink / raw)
  To: Bryan Wright; +Cc: help-gnu-emacs

take a look at `input-decode-map' and try something like

--8<---------------cut here---------------start------------->8---
(define-key input-decode-map (kbd "C-e O Q") (kbd "kp-f2"))
--8<---------------cut here---------------end--------------->8---

hth,

-- 
Philipp Haselwarter



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wrong keypad bindings for some keys in emacs 23.1 under CentOS 6
  2011-12-13 21:37 ` Philipp Haselwarter
@ 2011-12-14 15:54   ` Bryan Wright
  0 siblings, 0 replies; 3+ messages in thread
From: Bryan Wright @ 2011-12-14 15:54 UTC (permalink / raw)
  To: help-gnu-emacs

Excellent! that was the clue I needed.  For the record, here's the code that
fixes the keypad problems:

(define-key input-decode-map (kbd "\eOP") [kp-f1])
(define-key input-decode-map (kbd "\eOQ") [kp-f2])
(define-key input-decode-map (kbd "\eOR") [kp-f3])
(define-key input-decode-map (kbd "\eOS") [kp-f4])
(define-key input-decode-map (kbd "\eOn") [kp-decimal])

                                 Thanks,
                                 Bryan







^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-14 15:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 19:07 Wrong keypad bindings for some keys in emacs 23.1 under CentOS 6 Bryan Wright
2011-12-13 21:37 ` Philipp Haselwarter
2011-12-14 15:54   ` Bryan Wright

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.