[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:22:15 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
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
- 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/11
- 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