From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Global keymaps Date: Sat, 28 Jun 2008 22:45:07 +0300 Organization: JURTA Message-ID: <87tzfd5wdh.fsf@jurta.org> References: <4853F884.7000609@gmail.com> <7dbe73ed0806141442h342f8ff0u83863f3980a7e229@mail.gmail.com> <48545D78.8080103@gmail.com> <4854E536.8040407@gmail.com> <87k5gql900.fsf@jurta.org> <87hcbt59s6.fsf@jurta.org> <87y74ubfnc.fsf@jurta.org> <87fxr1fe7d.fsf@jurta.org> <87ej6l5ffi.fsf@catnip.gol.com> <87bq1mxyem.fsf@jurta.org> <87prq2z9lo.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214683196 31013 80.91.229.12 (28 Jun 2008 19:59:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Jun 2008 19:59:56 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 28 22:00:41 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KCgb8-0004vE-9U for ged-emacs-devel@m.gmane.org; Sat, 28 Jun 2008 22:00:38 +0200 Original-Received: from localhost ([127.0.0.1]:38275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KCgaI-0004iB-8x for ged-emacs-devel@m.gmane.org; Sat, 28 Jun 2008 15:59:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KCgaD-0004i6-Kp for emacs-devel@gnu.org; Sat, 28 Jun 2008 15:59:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KCgaC-0004hp-RA for emacs-devel@gnu.org; Sat, 28 Jun 2008 15:59:41 -0400 Original-Received: from [199.232.76.173] (port=56697 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KCgaC-0004hm-NW for emacs-devel@gnu.org; Sat, 28 Jun 2008 15:59:40 -0400 Original-Received: from anti-4.kiev.sovam.com ([62.64.120.202]:59346) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KCga6-0006qI-Mz; Sat, 28 Jun 2008 15:59:35 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by anti-4.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1KCga4-000N0U-B7; Sat, 28 Jun 2008 22:59:32 +0300 In-Reply-To: <87prq2z9lo.fsf@catnip.gol.com> (Miles Bader's message of "Sat, 28 Jun 2008 09:28:19 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 6f32a619495bd298c8ed4cb100af0918 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 4129 [June 26 2008] X-SpamTest-Info: {received from trusted relay: common white list} X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: white ip list X-SpamTest-Rate: 10 X-SpamTest-Status: Trusted X-SpamTest-Status-Extended: trusted X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100097 Archived-At: >> Then we can use the same naming convention as for C-x 4 and C-x 5 maps: >> >> ctl-x-4-map - keymap for subcommands of C-x 4 >> ctl-x-5-map - keymap for frame commands >> >> Such names don't restrict the map to commands of only one feature. >> >> By analogy, we could have: >> >> ctl-x-a-map - keymap for abbreviation commands >> ctl-x-n-map - keymap for narrowing commands >> ctl-x-r-map - keymap for register/rectangle subcommands of C-x r >> esc-g-map - keymap for navigation subcommands of M-g > > That's a bad naming convention, we shouldn't copy it if it's possible to > do better. If keymaps have a coherent meaning associated with the, we > should use it. > > So, "narrowing-map" and "goto-map" are pretty good. > > For the rectangle/register map, well, it's an ugly case, but > "rect-reg-map" more or less tells the story. A name like `ctl-x-n-map' is not descriptive indeed, but at least it doesn't limit the keymap to one particular functionality, and keeps it open for further unrelated bindings. Since we already very tight on available keys, who knows what commands we will need in future on these keymaps especially if they will have unrelated but good mnemonics. -- Juri Linkov http://www.jurta.org/emacs/