From: Rob Giardina <rgiar@yahoo.com>
To: emacs-devel@gnu.org
Subject: read-char doesn't use input-decode-map
Date: Wed, 30 Dec 2009 17:44:55 +0000 (UTC) [thread overview]
Message-ID: <loom.20091230T172318-774@post.gmane.org> (raw)
Hi,
I've noticed that read-char doesn't use input-decode-map. I'm
doing some fun things with input-decode-map (code attached) to
convert all the right-side keys to the left using a super prefix
on OSX (allows one hand kdb, one hand mouse). It works nicely in
most cases except for the read-char family of functions. Is this
a bug or the expected behavior?
Thanks,
Rob
;;crazy experiment to mirror right characters onto left hand
(let ((from "`12345qwertasdfgzxcvb~!@#$%QWERTASDFGZXCVB")
(to "-09876poiuy:lkjh/.,mn_)(*&^POIUY;LKJH/<>MN")
(from-v (vconcat ["right" "left"] (mapcar 'char-to-string from)))
(to-v (vconcat [" " " "] (mapcar 'char-to-string to))))
(map 'list
#'(lambda(k to)
(let* ((base-k (list 'super (intern k)))
(base-to (list (intern to))))
(mapc
#'(lambda(pre)
(define-key input-decode-map
(vector (append pre base-k))
(vector (append pre base-to))))
'(() (control) (meta) (control meta)))))
from-v
to-v)
next reply other threads:[~2009-12-30 17:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-30 17:44 Rob Giardina [this message]
2009-12-30 18:34 ` read-char doesn't use input-decode-map Stefan Monnier
2009-12-30 19:56 ` Rob Giardina
2009-12-31 2:51 ` Stefan Monnier
2010-01-03 1:59 ` Lennart Borgman
2010-01-04 2:18 ` Stefan Monnier
2010-01-04 2:31 ` Lennart Borgman
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=loom.20091230T172318-774@post.gmane.org \
--to=rgiar@yahoo.com \
--cc=emacs-devel@gnu.org \
/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.