From: phillip.lord@newcastle.ac.uk (Phillip Lord)
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Key-binding without minor mode!
Date: Mon, 15 Sep 2014 13:48:13 +0100 [thread overview]
Message-ID: <87ha09xd6a.fsf@newcastle.ac.uk> (raw)
In-Reply-To: <jwvr3zgaidz.fsf-monnier+INBOX@gnu.org> (Stefan Monnier's message of "Fri, 12 Sep 2014 12:56:37 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I am confused then. Should the major mode be binding to \t always then,
>> and never [tab]? In which case, what is the point of being able to bind
>> to [tab]?
>
> The major mode should only bind to [tab] if it wants to behave
> differently under a GUI than under a tty (which seems highly unlikely),
> or if it does not care to work under a tty and wants to distinguish the
> TAB key from the C-i key.
org does I think -- it binds tab, and C-i but not "\t".
(org-defkey org-mode-map "\C-i" 'org-cycle)
(org-defkey org-mode-map [(tab)] 'org-cycle)
Phil
next prev parent reply other threads:[~2014-09-15 12:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-11 11:47 Key-binding without minor mode! Phillip Lord
2014-09-11 12:19 ` Stefan Monnier
2014-09-11 14:22 ` Phillip Lord
2014-09-11 14:31 ` Stefan Monnier
2014-09-11 14:53 ` Phillip Lord
2014-09-11 18:46 ` Stefan Monnier
2014-09-12 9:50 ` Phillip Lord
2014-09-12 11:51 ` Stefan Monnier
2014-09-12 15:24 ` Phillip Lord
2014-09-12 16:56 ` Stefan Monnier
2014-09-15 12:48 ` Phillip Lord [this message]
2014-09-15 14:19 ` Stefan Monnier
2014-09-15 15:58 ` Phillip Lord
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=87ha09xd6a.fsf@newcastle.ac.uk \
--to=phillip.lord@newcastle.ac.uk \
--cc=help-gnu-emacs@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.