From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: ctl-x-map key binding conventions for new major/minor modes Date: Fri, 12 May 2017 22:10:22 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1494652279 9060 195.159.176.226 (13 May 2017 05:11:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 May 2017 05:11:19 +0000 (UTC) To: Tino Calancha , Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 13 07:11:12 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9PKh-0002Bz-TW for ged-emacs-devel@m.gmane.org; Sat, 13 May 2017 07:11:12 +0200 Original-Received: from localhost ([::1]:56314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9PKl-0005Tk-Jw for ged-emacs-devel@m.gmane.org; Sat, 13 May 2017 01:11:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9PK9-0005Tc-Kb for emacs-devel@gnu.org; Sat, 13 May 2017 01:10:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9PK6-0001Hu-Fm for emacs-devel@gnu.org; Sat, 13 May 2017 01:10:37 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:17135) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d9PK6-0001Gm-6e for emacs-devel@gnu.org; Sat, 13 May 2017 01:10:34 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v4D5ATeE012430 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 13 May 2017 05:10:29 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v4D5APrT013618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 13 May 2017 05:10:29 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v4D5AOdi024431; Sat, 13 May 2017 05:10:24 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6767.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214805 Archived-At: > (info "(elisp) Key Binding Conventions") > Do we need a recommendation in this node about bindings with > prefix 'C-x'? There is no guidance in the node above about > this topic. Just loading a new mode shouldn't shadow some > previous C-x bindings, right? >=20 > For instance, > * timeclock.el suggests some C-x bindings in the comentary, that is, > it doesn't define these bindings by default. > * dired-x.el has the user option `dired-bind-jump' to control if > `dired-jump' must be bound or not to 'C-x C-j'. > * find-func.el has the autoloaded function `find-function-setup-keys', > which binds some commands into `ctl-x-map'. Are you asking whether code that is distributed with Emacs should bind keys with prefix `C-x'? That's usually discussed and decided case by case, e.g. on this list. Are you asking whether we should make particular recommendations in this regard for 3rd-party code? If so, I think not. Loading a 3rd-party library is optional. If a library binds keys just by loading it then that should at least be made clear in the library doc/commentary. A user can always override any bindings that might be made by a library, but s?he should be aware of what happens when the library is loaded or a mode is turned on. Have you noticed an actual problem in this regard?