bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bugs in (loop for ... being the key-codes|key-seqs ...)


From: Johan Bockgård
Subject: Re: bugs in (loop for ... being the key-codes|key-seqs ...)
Date: Mon, 10 Mar 2008 15:27:58 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

"Jonas Bernoulli" <jonas@bernoulli.cc> writes:

> Both 22.1 and 23.0.60 are affected.
>
> (loop for key being the key-seqs of
>       (let ((map (make-sparse-keymap)))
>       (define-key map "a" 'a-97)
>       (define-key map "b" 'b-98)
>       map)
>       collect key)
>
> => ([97] [97])
>
> but should be:
>
> => ([98] [97])

  `for VAR being the key-seqs of KEYMAP'
       This clause iterates over all key sequences defined by KEYMAP and
       its nested keymaps, where VAR takes on values which are vectors.
       The strings or vectors are reused for each iteration, so you must
       copy them if you wish to keep them permanently.
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-- 
Johan Bockgård





reply via email to

[Prev in Thread] Current Thread [Next in Thread]