From: Juri Linkov <juri@jurta.org>
To: Nicolas Richard <theonewiththeevillook@yahoo.fr>
Cc: 14397@debbugs.gnu.org
Subject: bug#14397: 24.3; <C-kp-1> and <M-kp-1> undefined
Date: Fri, 06 Dec 2013 03:15:12 +0200 [thread overview]
Message-ID: <87y53y6a9z.fsf@mail.jurta.org> (raw)
In-Reply-To: <87zjofy5xo.fsf@yahoo.fr> (Nicolas Richard's message of "Thu, 05 Dec 2013 10:59:15 +0100")
> Indeed, it would fix the issue ; but from what I gather, the suggestion
> was dismissed because it makes function-key-map too big (and so does my
> suggestion).
>
> Adding "functional keymap" support as suggested in
> http://article.gmane.org/gmane.emacs.devel/153726 seems beyond my
> ability.
Neither functional keymaps nor keymaps with pattern matching
are quick to implement, at least not until the feature freeze,
so it would be better now just to add all combinations
using `todo-powerset' to completely support keypad keys
in the next release.
The current code is following, but maybe `todo-powerset' should be moved
to bindings.el or other appropriate place like cl-seq.el.
(let ((modifiers (todo-powerset '(control meta shift super hyper)))
(keys '((kp-end . end) (kp-down . down) (kp-next . next)
(kp-left . left) (kp-begin . begin) (kp-right . right)
(kp-home . home) (kp-up . up) (kp-prior . prior)
(kp-insert . insert) (kp-delete . delete) (kp-enter . enter)
(kp-add . +) (kp-subtract . -) (kp-multiply . *) (kp-divide . /)
(kp-1 . ?1) (kp-2 . ?2) (kp-3 . ?3) (kp-4 . ?4) (kp-5 . ?5)
(kp-6 . ?6) (kp-7 . ?7) (kp-8 . ?8) (kp-9 . ?9) (kp-0 . ?0)
(kp-decimal . .))))
(dolist (pair keys)
(dolist (mod modifiers)
(define-key function-key-map
(vector (append mod (list (car pair))))
(vector (append mod (list (cdr pair))))))))
next prev parent reply other threads:[~2013-12-06 1:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 10:42 bug#14397: 24.3; <C-kp-1> and <M-kp-1> undefined Nicolas Richard
2013-12-04 10:59 ` Nicolas Richard
2013-12-05 1:28 ` Juri Linkov
2013-12-05 9:59 ` Nicolas Richard
2013-12-06 1:15 ` Juri Linkov [this message]
2013-12-11 0:45 ` Juri Linkov
2013-12-12 10:11 ` Nicolas Richard
2013-12-13 1:09 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y53y6a9z.fsf@mail.jurta.org \
--to=juri@jurta.org \
--cc=14397@debbugs.gnu.org \
--cc=theonewiththeevillook@yahoo.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.