From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.bugs Subject: Re: keymap display inconsistency in help Date: Tue, 07 May 2002 14:21:31 GMT Organization: Global Online Japan // Exodus Communications KK. Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <873cx4ujh0.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <200204261709.g3QH9xL04077@steve.ims.uni-stuttgart.de> <200204290506.g3T566o06170@aztec.santafe.edu> <200205050534.g455YY101619@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020781466 3880 127.0.0.1 (7 May 2002 14:24:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 7 May 2002 14:24:26 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 1755tC-00010R-00 for ; Tue, 07 May 2002 16:24:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 1755tH-0005wB-00; Tue, 07 May 2002 10:24:31 -0400 Original-Received: from chx400.switch.ch ([130.59.10.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 1755qU-0005bB-00 for ; Tue, 07 May 2002 10:21:38 -0400 Original-Received: from smtp02.fields.gol.com ([203.216.5.132]) by chx400.switch.ch with esmtp (Exim 3.20 #1) id 1755qS-000592-00 for gnu-emacs-bug@moderators.isc.org; Tue, 07 May 2002 16:21:37 +0200 Original-Received: from nnrp.gol.com ([203.216.7.70]) by smtp02.fields.gol.com with esmtp (Magnetic Fields) id 1755qO-0005Em-00 for ; Tue, 07 May 2002 23:21:33 +0900 Original-Received: by nnrp.gol.com (8.10.0.Beta6/8.9.1/891-NEWS-P) id g47ELVA08007; Tue, 7 May 2002 23:21:31 +0900 (JST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug System-Type: i686-pc-linux-gnu Original-Lines: 16 Original-NNTP-Posting-Host: 203.216.25.158 Original-X-Complaints-To: abuse@gol.com Original-X-Trace: nnrp.gol.com 1020781291 203.216.25.158 (Tue, 07 May 2002 23:21:31 JST) Original-NNTP-Posting-Date: Tue, 07 May 2002 23:21:31 JST X-Abuse-Complaints: abuse@gol.com Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1212 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1212 steve@ims.uni-stuttgart.de (Stephen Berman) writes: > I'm curious why make-keymap and make-sparse-keymap differ in this > respect (as well as others, as I've recently learned). Are there > efficiency or other reasons? It's just that they use different data structures -- sparse keymaps are lists, and bindings are added by just pushing them on the front, whereas keymaps are vectors, and bindings are added in the appropriate place (indexed by the key). I suppose it would be simple enough to sort sparse keymaps before displaying them, to have the same order as a normal keymap. -Miles -- Is it true that nothing can be known? If so how do we know this? -Woody Allen