help-gnu-emacs
[Top][All Lists]
Advanced

[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 <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]