From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: Are there exist any registry for reserved key binding? Date: Sat, 12 Nov 2011 14:00:26 +0200 Organization: At home. Message-ID: <8762ipv9d1.fsf@gmail.com> References: <87y5vm8c9m.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321099261 7563 80.91.229.12 (12 Nov 2011 12:01:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2011 12:01:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 12 13:00:56 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 1RPCGW-0001ci-7M for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Nov 2011 13:00:56 +0100 Original-Received: from localhost ([::1]:53599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPCGV-0003eq-PT for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Nov 2011 07:00:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPCGQ-0003dH-QV for help-gnu-emacs@gnu.org; Sat, 12 Nov 2011 07:00:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPCGO-00039n-SJ for help-gnu-emacs@gnu.org; Sat, 12 Nov 2011 07:00:50 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:36065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPCGO-000393-GH for help-gnu-emacs@gnu.org; Sat, 12 Nov 2011 07:00:48 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RPCGN-0001Z7-8P for help-gnu-emacs@gnu.org; Sat, 12 Nov 2011 13:00:47 +0100 Original-Received: from 123-36-202-46.pool.ukrtel.net ([46.202.36.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Nov 2011 13:00:47 +0100 Original-Received: from gavenkoa by 123-36-202-46.pool.ukrtel.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Nov 2011 13:00:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 123-36-202-46.pool.ukrtel.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (windows-nt) Cancel-Lock: sha1:Ye+dIiLk08gtsLsDeN51j4ehBp4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:82875 Archived-At: On 2011-11-12, Drew Adams wrote: >> When I make own mode I would like to select key bindings that does not >> interference with most other packages/modes. >> What are the best practice/recommendations to archive this goal? > > (elisp) `Key Binding Conventions' > Thanks for reference. So any major/minor mode designer MUST follow this rules. I look to 'jabber-keymap.el': (defvar jabber-global-keymap ... "Global Jabber keymap (usually under C-x C-j)") (define-key ctl-x-map "\C-j" jabber-global-keymap) So this package define 'C-x C-j' globally. If another package use this key binding user must resolve conflict manually? Are there any guide to avoid conflicts? 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... -- Best regards!