unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
Subject: Re: keymap display inconsistency in help
Date: Tue, 07 May 2002 14:21:31 GMT	[thread overview]
Message-ID: <873cx4ujh0.fsf@tc-1-100.kawasaki.gol.ne.jp> (raw)
In-Reply-To: m34rhlj5n0.fsf@steve.ims.uni-stuttgart.de

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

  reply	other threads:[~2002-05-07 14:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-26 17:09 keymap display inconsistency in help Stephen Berman
2002-04-29  5:06 ` Richard Stallman
2002-04-29 19:42   ` Kevin Rodgers
2002-05-01 11:27     ` Stephen Berman
2002-05-05  5:34       ` Richard Stallman
2002-05-06 22:03         ` Stephen Berman
2002-05-07 14:21           ` Miles Bader [this message]
2002-05-08 13:59             ` Richard Stallman
2002-04-29 13:43 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873cx4ujh0.fsf@tc-1-100.kawasaki.gol.ne.jp \
    --to=miles@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).