[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: keymap display inconsistency in help
From: |
Miles Bader |
Subject: |
Re: keymap display inconsistency in help |
Date: |
Tue, 07 May 2002 14:21:31 GMT |
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