emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mode + icicles, avoid key binding redefinitions?
Date: Thu, 23 Jan 2014 07:33:58 -0800 (PST)	[thread overview]
Message-ID: <e0811abb-260d-4409-917d-7c440949139a@default> (raw)
In-Reply-To: <87ob33nnwi.fsf@bzg.ath.cx>

> >  * Sequences consisting of `C-c' followed by any other punctuation
> >    character are allocated for minor modes.  Using them in a major
> >    mode is not absolutely prohibited, but if you do that, the major
> >    mode binding may be shadowed from time to time by minor modes.
> >
> > IOW, no major mode should bind any of the latter group of keys,
> > including `C-'' and `C-`', and any minor mode may do so - whether
> > that mode is "official" or not.
> 
> We are talking about C-c ' but I think that's a typo in the
> paragraph above, since the manual you quote is about C-c '.

Yes, sorry, I meant C-c ' and C-c `.

> > 1b. There is no global default binding for `C-'' in `emacs -Q'.
> > And there should not be, since it is reserved for minor modes.
> >
> > I don't know whether Org binds `C-'' for a minor mode or for
> > a major mode, but if it is the latter then it is in violation
> > of the convention.
> 
> As the manual says, this is not prohibited, just discouraged.

Binding C-c ' by a major mode defies the convention.  Whether
you want to interpret the convention as a prohibition (without
any real teeth) or just a mild discouragement is up to you.

What we can say is that any major mode that binds such keys
does not respect the GNU Emacs key-binding conventions, which
were defined to allow help modes and libraries cooperate.
There can be no disagreement about that.

We can disagree about how important it is to respect those
conventions.  Icicles, at any rate, does respect them.

> You're of course allowed to shadow C-c ' in your code.

It's not about me or my code or being allowed.  C-c ' is
reserved for minor modes.  Any minor mode can bind such keys.
No major mode should do so.

  reply	other threads:[~2014-01-23 15:34 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-23  4:45 org-mode + icicles, avoid key binding redefinitions? Drew Adams
2014-01-23  7:43 ` Bastien
2014-01-23 15:33   ` Drew Adams [this message]
2014-01-23 15:46     ` Bastien
2014-01-23 16:28       ` Drew Adams
2014-01-23 16:34         ` Bastien
2014-01-23 17:01           ` Drew Adams
2014-01-23 22:24             ` Bastien
2014-01-23 22:56               ` Drew Adams
2014-01-23 23:29               ` Thomas S. Dye
2014-01-24  8:39                 ` Bastien
2014-01-25  7:34                   ` Thomas S. Dye
2014-01-28  9:08                     ` Bastien
2014-01-29  8:43                       ` Sebastien Vauban
2014-01-29  9:39                         ` Bastien
2014-01-29 10:35                           ` Sebastien Vauban
2014-01-29 11:00                             ` Bastien
2014-01-29 11:32                               ` Sebastien Vauban
2014-01-29 17:34                         ` Thomas S. Dye
2014-01-29 17:48                           ` Bastien
2014-01-29 19:48                             ` Thomas S. Dye
2014-01-29 20:11                               ` Iannis Zannos
2014-01-30  0:39                               ` Bastien
2014-01-29 11:44                       ` Florian Beck
2014-01-29 13:16                         ` Nick Dokos
2014-01-29 13:52                           ` Bastien
2014-01-29 18:01                             ` Achim Gratz
2014-01-29 20:06                             ` Andreas Leha
2014-01-29 20:13                               ` Iannis Zannos
2014-01-29 14:43                           ` Florian Beck
2014-01-29 15:40                             ` Bastien
2014-01-29 16:20                               ` Nicolas Goaziou
2014-01-23 13:57 ` Alan Schmitt
2014-01-23 15:33   ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2014-01-18 19:49 John Kitchin
2014-01-18 21:40 ` Alan Schmitt
2014-01-19 15:53 ` Bastien
2014-01-19 17:31 ` Memnon Anon
2014-01-19 20:56   ` John Kitchin
2014-01-20  2:34     ` Memnon Anon
2014-01-20 23:12       ` Alan Schmitt

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e0811abb-260d-4409-917d-7c440949139a@default \
    --to=drew.adams@oracle.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).