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: Fri, 11 Nov 2011 16:03:46 -0800 Message-ID: References: <87y5vm8c9m.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 1321056248 16129 80.91.229.12 (12 Nov 2011 00:04:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2011 00:04:08 +0000 (UTC) To: "'Oleksandr Gavenko'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 12 01:04:03 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 1RP14k-0000aD-UQ for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Nov 2011 01:04:03 +0100 Original-Received: from localhost ([::1]:47547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP14k-00050I-A0 for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Nov 2011 19:04:02 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP14f-00050A-FT for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 19:03:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RP14e-00040G-1o for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 19:03:57 -0500 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:35711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RP14d-000405-Pc for help-gnu-emacs@gnu.org; Fri, 11 Nov 2011 19:03:56 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pAC03rFD013434 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 12 Nov 2011 00:03:53 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pAC03q6q006273 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 12 Nov 2011 00:03:52 GMT Original-Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pAC03kBh010473; Fri, 11 Nov 2011 18:03:47 -0600 Original-Received: from dradamslap1 (/10.159.61.9) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 11 Nov 2011 16:03:46 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcygypMtd2ByHDv5RYmmPj0/bEfPbwAAT9qAAAAjatA= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-CT-RefId: str=0001.0A090205.4EBDB7EA.0011,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:82870 Archived-At: > > 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' BTW, in Info, `i' is your friend. It looks things up in the index, providing completion. You could have found this information yourself by: 1. Guessing that it was in the Elisp manual somewhere. 2. Using `i' in that manual, then typing `key TAB'. For #2 you would have seen "key binding, conventions for" as one of the completion candidates. Simple. --- Even easier - If you used Icicles, you could have just typed `convention' or `key' and hit `S-TAB' for apropos completion. And you could have typed either `key S-SPC convention' or `convention S-SPC key' to get the right candidate directly. `S-SPC' means "Narrow the set of current completion candidates to those that also match...". You can combine as many completion patterns as you like this way, progressively narrowing the set of candidates. That's much, much easier than trying to come up with a fancy pattern (e.g. a single regexp) that matches only the same small set of candidates. http://www.emacswiki.org/emacs/Icicles_-_Progressive_Completion You can also use `C-~' to subtract a set of matches - another way to narrow the set of candidates. http://www.emacswiki.org/emacs/Icicles_-_Nutshell_View#ChippingAway