From: phillip.lord@newcastle.ac.uk (Phillip Lord)
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Key-binding without minor mode!
Date: Thu, 11 Sep 2014 15:22:15 +0100 [thread overview]
Message-ID: <87wq9ab5k8.fsf@newcastle.ac.uk> (raw)
In-Reply-To: <jwv61gufiyo.fsf-monnier+gmane.emacs.help@gnu.org> (Stefan Monnier's message of "Thu, 11 Sep 2014 08:19:26 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> (key-binding (this-command-keys-vector))
>
> This should work.
Unfortunately, this fails for me.
This problem seems to be this. If I define keys as follows:
(define-key pabbrev-mode-map [tab] 'pabbrev-expand-maybe)
Then in lisp mode this looks up looks up the binding for
[tab] which returns nil, presumably because of this...
(define-key global-map "\t" 'indent-for-tab-command)
which binds "\t" and not [tab] even though the [tab] keybinding
overrides the "\t" one.
Previously I've dealt with this by checking for either, but this
hard codes [tab] as my keypress, so it can't be changed.
Phil
next prev parent reply other threads:[~2014-09-11 14:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-11 11:47 Key-binding without minor mode! Phillip Lord
2014-09-11 12:19 ` Stefan Monnier
2014-09-11 14:22 ` Phillip Lord [this message]
2014-09-11 14:31 ` Stefan Monnier
2014-09-11 14:53 ` Phillip Lord
2014-09-11 18:46 ` Stefan Monnier
2014-09-12 9:50 ` Phillip Lord
2014-09-12 11:51 ` Stefan Monnier
2014-09-12 15:24 ` Phillip Lord
2014-09-12 16:56 ` Stefan Monnier
2014-09-15 12:48 ` Phillip Lord
2014-09-15 14:19 ` Stefan Monnier
2014-09-15 15:58 ` Phillip Lord
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wq9ab5k8.fsf@newcastle.ac.uk \
--to=phillip.lord@newcastle.ac.uk \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).