[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Key-binding without minor mode!
From: |
Phillip Lord |
Subject: |
Re: Key-binding without minor mode! |
Date: |
Thu, 11 Sep 2014 15:53:56 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
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
- Key-binding without minor mode!, Phillip Lord, 2014/09/11
- Re: Key-binding without minor mode!, Stefan Monnier, 2014/09/11
- Re: Key-binding without minor mode!, Phillip Lord, 2014/09/11
- Re: Key-binding without minor mode!, Stefan Monnier, 2014/09/11
- Re: Key-binding without minor mode!,
Phillip Lord <=
- Re: Key-binding without minor mode!, Stefan Monnier, 2014/09/11
- Re: Key-binding without minor mode!, Phillip Lord, 2014/09/12
- Re: Key-binding without minor mode!, Stefan Monnier, 2014/09/12
- Re: Key-binding without minor mode!, Phillip Lord, 2014/09/12
- Re: Key-binding without minor mode!, Stefan Monnier, 2014/09/12
- Re: Key-binding without minor mode!, Phillip Lord, 2014/09/15
- Re: Key-binding without minor mode!, Stefan Monnier, 2014/09/15
- Re: Key-binding without minor mode!, Phillip Lord, 2014/09/15