[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is this-command-keys missing?
From: |
Lennart Borgman |
Subject: |
Re: Why is this-command-keys missing? |
Date: |
Sun, 2 Jan 2011 05:29:52 +0100 |
On Sun, Jan 2, 2011 at 5:19 AM, Stefan Monnier <address@hidden> wrote:
>> I am trying to use orgstruct-mode for a compilation output buffer.
>> orgstruct-mode binds keys like this:
>
>> ;; Special treatment needed for TAB and RET
>> (org-defkey orgstruct-mode-map [(tab)]
>> (orgstruct-make-binding 'org-cycle 102 [(tab)] "\C-i"))
>> (org-defkey orgstruct-mode-map "\C-i"
>> (orgstruct-make-binding 'org-cycle 103 "\C-i" [(tab)]))
>
> I don't know what this does, nor why it seems to bind both "\C-i" and
> [(tab)].
I beginning to think the problem is in this binding here, but I do not
understand exactly why the binding is done like this.
> So, you don't care which command was run, but instead you want to
> delegate to the other command which would be run if you ignore the
> "currently used" binding.
Yes.
> - disable your binding, then push this-command-raw-keys back on
> unread-command-events, while arranging to re-enable the binding
> after the next command.
I do not think it will work here since the key seems to be already
translated in raw-keys.