From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Global keymaps Date: Sat, 28 Jun 2008 09:28:19 +0900 Message-ID: <87prq2z9lo.fsf@catnip.gol.com> 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> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214612940 12346 80.91.229.12 (28 Jun 2008 00:29:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Jun 2008 00:29:00 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 28 02:29:45 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 1KCOJx-0000kM-B3 for ged-emacs-devel@m.gmane.org; Sat, 28 Jun 2008 02:29:41 +0200 Original-Received: from localhost ([127.0.0.1]:47146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KCOJ7-0002fK-Gb for ged-emacs-devel@m.gmane.org; Fri, 27 Jun 2008 20:28:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KCOJ3-0002fF-H3 for emacs-devel@gnu.org; Fri, 27 Jun 2008 20:28:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KCOIy-0002df-UK for emacs-devel@gnu.org; Fri, 27 Jun 2008 20:28:45 -0400 Original-Received: from [199.232.76.173] (port=49762 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KCOIy-0002dO-R9 for emacs-devel@gnu.org; Fri, 27 Jun 2008 20:28:40 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:43791) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KCOIl-0001zR-QW; Fri, 27 Jun 2008 20:28:28 -0400 Original-Received: from 218.33.235.76.eo.eaccess.ne.jp ([218.33.235.76] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1KCOIe-0007cy-Pw; Sat, 28 Jun 2008 09:28:20 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 775F82F3A; Sat, 28 Jun 2008 09:28:19 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <87bq1mxyem.fsf@jurta.org> (Juri Linkov's message of "Sat, 28 Jun 2008 02:15:29 +0300") Original-Lines: 32 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:100079 Archived-At: Juri Linkov writes: >> Tho C-x r is a bit of a weird puppy, as it's both "register" and >> "rectangle" commands (with some overlap). > > 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. -Miles -- Barometer, n. An ingenious instrument which indicates what kind of weather we are having.