all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Why is this-command-keys missing?
Date: Sun, 2 Jan 2011 05:29:52 +0100	[thread overview]
Message-ID: <AANLkTi=t0dWu9Uoh_QkEgSw+RsfPMjd_SErchDTO2V=_@mail.gmail.com> (raw)
In-Reply-To: <jwvy67454hr.fsf-monnier+emacs@gnu.org>

On Sun, Jan 2, 2011 at 5:19 AM, Stefan Monnier <monnier@iro.umontreal.ca> 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.



  reply	other threads:[~2011-01-02  4:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-01 18:59 Why is this-command-keys missing? Lennart Borgman
2011-01-02  1:57 ` Stefan Monnier
2011-01-02  2:38   ` Lennart Borgman
2011-01-02  4:19     ` Stefan Monnier
2011-01-02  4:29       ` Lennart Borgman [this message]
2011-01-02 14:42         ` Stefan Monnier

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='AANLkTi=t0dWu9Uoh_QkEgSw+RsfPMjd_SErchDTO2V=_@mail.gmail.com' \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@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.