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: Are there exist any registry for reserved key binding? Date: Sat, 12 Nov 2011 06:51:50 -0800 Message-ID: <3FB7D2ED9D7D47CCBFB2C3434A1186EA@us.oracle.com> References: <87y5vm8c9m.fsf@gmail.com> <8762ipv9d1.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1321109532 2362 80.91.229.12 (12 Nov 2011 14:52:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2011 14:52:12 +0000 (UTC) To: "'Oleksandr Gavenko'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 12 15:52:08 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RPEwC-0003H6-3s for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Nov 2011 15:52:08 +0100 Original-Received: from localhost ([::1]:38235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPEwA-0000rL-QI for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Nov 2011 09:52:06 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPEw5-0000r5-TV for help-gnu-emacs@gnu.org; Sat, 12 Nov 2011 09:52:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPEw4-0005OE-PP for help-gnu-emacs@gnu.org; Sat, 12 Nov 2011 09:52:01 -0500 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:49997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPEw3-0005Nh-9m for help-gnu-emacs@gnu.org; Sat, 12 Nov 2011 09:52:00 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pACEpuv9022545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 12 Nov 2011 14:51:57 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pACEpuaV013787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 12 Nov 2011 14:51:56 GMT Original-Received: from abhmt103.oracle.com (abhmt103.oracle.com [141.146.116.55]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pACEpoJb014163; Sat, 12 Nov 2011 08:51:50 -0600 Original-Received: from dradamslap1 (/10.159.62.157) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 12 Nov 2011 06:51:50 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8762ipv9d1.fsf@gmail.com> Thread-Index: AcyhMr99ajb7W6NeQiSBHIsq92P0EQAFe4kQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A020204.4EBE880D.0055,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 141.146.126.227 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82878 Archived-At: > > (elisp) `Key Binding Conventions' > > So any major/minor mode designer MUST follow this rules. No, there is no MUST. There is no code-convention police. Judgment is by code users, not tribunal. Users include individuals and other code (e.g. libraries). The reason for such conventions is to help make it easier for different bits of code to get along together peacefully. And to make it easier for users to use such code. > 'jabber-keymap.el': So this package define 'C-x C-j' globally. Did you see any guideline at (elisp) `Key Binding Conventions' that says please do not bind a key in the `C-x' keymap? AFAIK, that is not proscribed. > If another package use this key binding user must resolve > conflict manually? Guess so. If you find what you think to be a mismatch wrt the suggested coding conventions (they are guidelines, not enforced laws), consider reporting it to the code's author/maintainer as a possible bug. S?he will most likely appreciate it, if it truly goes against the guidelines. > Are there any guide to avoid conflicts? Just the suggested conventions, AFAIK. > My suggestion is to check most popular packages and make some > thing different key bindings. But globally maintained key > binding registry make life much easy... Consider sending your suggestion as an Emacs enhancement request, via `M-x report-emacs-bug' (that is for enhancement requests, in addition to bugs). Or bring up your suggestion on the Emacs development list, emacs-devel@gnu.org. (help-gnu-emacs@gnu.org is for help with GNU Emacs.) But keep this in mind, if it helps: Emacs has been around for 35 years or so. This kind of thing has been dealt with by thousands of users and code libraries over the decades. That's not to say that you might not have a better idea, but it might give you some perspective on the problem you feel you've discovered.