From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Emacs conventions (was: Re: Overriding emacs key bindings) Date: Tue, 17 May 2016 21:38:58 -0700 (PDT) Message-ID: References: <86k2iteg4e.fsf@student.uu.se> <87lh39h2hr.fsf@robertthorpeconsulting.com> <7ed720ce-0339-4de0-8f05-2f2ebbab3531@default> <867fesdtv4.fsf_-_@student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1463546390 26055 80.91.229.3 (18 May 2016 04:39:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 May 2016 04:39:50 +0000 (UTC) To: Emanuel Berg , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 18 06:39:38 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b2tGk-00044q-0g for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2016 06:39:38 +0200 Original-Received: from localhost ([::1]:42938 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2tGi-0007Fy-JO for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2016 00:39:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2tGK-0007Fh-U2 for help-gnu-emacs@gnu.org; Wed, 18 May 2016 00:39:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2tGE-0008Mo-Tb for help-gnu-emacs@gnu.org; Wed, 18 May 2016 00:39:11 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:17748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2tGE-0008Mc-LE for help-gnu-emacs@gnu.org; Wed, 18 May 2016 00:39:06 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u4I4d0XT020446 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 May 2016 04:39:02 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u4I4d0Hj017782 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 May 2016 04:39:00 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u4I4cxH0009270; Wed, 18 May 2016 04:39:00 GMT In-Reply-To: <867fesdtv4.fsf_-_@student.uu.se> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110039 Archived-At: > > What Emacs reserves (by convention) are keys > > from modes. It says that major modes should > > use only these keys and minor modes should > > use only those keys. And neither major nor > > minor should use a third set of keys, which > > are _only_ for users (again, by convention). >=20 > Are those "Emacs conventions" - and not just > those who deal with keys - summarized somewhere? (elisp) `Key Binding Conventions': http://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conven= tions.html > Because they are obviously good to be aware of, > so when you disregard them, it is something you > do because you think it'll benefit you, and not > because you are unaware of something that on > the contrary makes sense... Yes, they are good to be aware of. But again, they are for someone writing a library for more than personal use. They are in no way restrictions on users. There is no convention (that I know of) that restricts key bindings for users or even suggests that users should stay away from certain keys. The exceptions I can think of, in terms of suggestions, are `C-u' and `C-g'. You might get into some difficulty if you try to bind `C-u' (and a few users seem to want to do that). You can use another key in place of `C-g', but there are some hard-coded bindings of `C-g' to its usual behavior, AFAIK. I would recommend that no one try to use `C-g' or `C-u' for something else. (But there is no restriction against trying to do that.)