From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: bypassing defining prefix keys Date: Sun, 4 Feb 2007 13:27:19 -0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1170624666 1456 80.91.229.12 (4 Feb 2007 21:31:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Feb 2007 21:31:06 +0000 (UTC) To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 04 22:30:57 2007 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 1HDowo-0000Hs-6n for ged-emacs-devel@m.gmane.org; Sun, 04 Feb 2007 22:30:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HDowe-0005Zk-Ex for ged-emacs-devel@m.gmane.org; Sun, 04 Feb 2007 16:30:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HDovD-00050S-24 for emacs-devel@gnu.org; Sun, 04 Feb 2007 16:29:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HDov5-0004zz-QY for emacs-devel@gnu.org; Sun, 04 Feb 2007 16:29:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HDov5-0004zu-K1 for emacs-devel@gnu.org; Sun, 04 Feb 2007 16:29:07 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HDov1-0008Mx-56 for emacs-devel@gnu.org; Sun, 04 Feb 2007 16:29:06 -0500 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l14LSLIa002046 for ; Sun, 4 Feb 2007 14:28:21 -0700 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l14KhrGf028780 for ; Sun, 4 Feb 2007 14:28:21 -0700 Original-Received: from dhcp-amer-whq-csvpn-gw3-141-144-81-114.vpn.oracle.com by rcsmt250.oracle.com with ESMTP id 2419546861170624450; Sun, 04 Feb 2007 14:27:30 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Importance: Normal In-Reply-To: X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= X-detected-kernel: Linux 2.4-2.6 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:65863 Archived-At: > > Here's why. In dired.el, instead of defining `*' and `%' as > > prefix keys, a shortcut is taken. `*' and `%' are each bound to nil, > > so that they are undefined in `dired-mode-map', and then each of the > > `*-' and `%- key sequences is bound directly in > > `dired-mode-map'. That is: > > > > (define-key dired-mode-map "*" nil) > > (define-key dired-mode-map "*/" 'dired-mark-directories) > > ... > > > > This explains the behavior I get, but I wonder if `*' and `%' should be > > defined this way. > > Before the remap feature existed you had to remove the existing binding > for "*" (from suppress-keymap) before you could redefine it as a prefix > key. I'm not sure what you're responding to. Yes, any existing binding has been removed by binding them to nil. And? `*' and `%' are _not_ then defined as prefix keys. The question is whether they should be. Is there a good reason not to define them as prefix keys?