From: Eli Barzilay <eli@barzilay.org>
To: emacs-devel@gnu.org
Subject: Is there a way to make a key really unbound?
Date: Thu, 19 Nov 2015 13:56:41 -0500 [thread overview]
Message-ID: <22094.7017.883532.455867@lambda.ccs.neu.edu> (raw)
I'm trying to properly address a request to make calculator.el treat
"E" as if it were "e" since there is no binding specifically for "E".
This works in the electric mode since it specifically uses the
`calculator-mode-map' as a global map, which means that the unbound
"E" gets translated to its bound unshifted version. However, in the
regular non-electric mode this can obviously not be done. (If it is,
then the shift translation works as intended, but the global map is
lost...)
I think that this is because "E" gets the default
`self-insert-command' binding from the global map, which is then
translated to `undefined' due to my use of `suppress-keymap'. I tried
to manually tweak that remapping to `nil' which doesn't help.
So, is there some way to make a key really unbound -- rather than
getting `undefined'? Or, is there some other way to bind a key to
some "try-this-key-with-shift-off" function?
(Without this, the only thing I can think of is to make the code that
sets up the map explicitly bind upper-case letters too when a
lower-case binding is made, but that sounds like an ugly hack.)
--
((x=>x(x))(x=>x(x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!
reply other threads:[~2015-11-19 18:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=22094.7017.883532.455867@lambda.ccs.neu.edu \
--to=eli@barzilay.org \
--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.