From mboxrd@z Thu Jan 1 00:00:00 1970 From: Drew Adams Subject: Re: org-mode + icicles, avoid key binding redefinitions? Date: Thu, 23 Jan 2014 07:33:58 -0800 (PST) Message-ID: References: <87ob33nnwi.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6MIN-0005kW-8w for emacs-orgmode@gnu.org; Thu, 23 Jan 2014 10:34:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6MIE-0001QI-Nh for emacs-orgmode@gnu.org; Thu, 23 Jan 2014 10:34:19 -0500 In-Reply-To: <87ob33nnwi.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org > > * 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. >=20 > 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. >=20 > 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.