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:53:56 +0100 [thread overview]
Message-ID: <87sijyb43f.fsf@newcastle.ac.uk> (raw)
In-Reply-To: <jwva966dybv.fsf-monnier+INBOX@gnu.org> (Stefan Monnier's message of "Thu, 11 Sep 2014 10:31:27 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> This problem seems to be this. If I define keys as follows:
>> (define-key pabbrev-mode-map [tab] 'pabbrev-expand-maybe)
>
> If you don't want to distinguish between [tab] and "\t", then use "\t",
> which will cover both.
It's a nice idea, but it fails, unfortunate, because I am defining for a
minor mode. If the major mode uses `\t` then all is good. The minor-mode
will override the major. But if the major-mode defines binds to [tab]
then it will override the minor mode.
I think I have no choice but to handle tab explicitly. Is [tab] the only
key that works like this?
Phil
next prev parent reply other threads:[~2014-09-11 14:53 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
2014-09-11 14:31 ` Stefan Monnier
2014-09-11 14:53 ` Phillip Lord [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sijyb43f.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.
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.