GNU bug report logs - #48
bugs in (loop for ... being the key-codes|key-seqs ...)

Previous Next

Package: emacs;

Reported by: "Jonas Bernoulli" <jonas <at> bernoulli.cc>

Date: Mon, 10 Mar 2008 16:15:06 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#48: marked as done (bugs in (loop for ... being the 
 key-codes|key-seqs ...))
[Message part 1 (text/plain, inline)]
Your message dated Tue, 18 Mar 2008 22:39:16 -0400
with message-id <jwvprtrzbd5.fsf-monnier+emacs <at> gnu.org>
and subject line bugs in (loop for ... being the key-codes|key-seqs ...)
has caused the Emacs bug report #48,
regarding bugs in (loop for ... being the key-codes|key-seqs ...)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don <at> donarmstrong.com
immediately.)


-- 
48: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Jonas Bernoulli" <jonas <at> bernoulli.cc>
To: bug-gnu-emacs <at> gnu.org
Subject: bugs in (loop for ... being the key-codes|key-seqs ...)
Date: Mon, 10 Mar 2008 14:28:24 +0100
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])


(loop for key being the key-codes of
      (let ((map (make-sparse-keymap)))
	(define-key map "a" 'a-97)
	(define-key map "b" 'b-98)
	(set-keymap-parent map
			   (let ((map (make-sparse-keymap)))
			     (define-key map "c" 'c-99)
			     map))
	map)
      collect key)

=> (98 97 99)

but should be:

=> (98 97)

`for VAR being the key-codes of KEYMAP'
     This clause iterates over the entries in KEYMAP.  The iteration
     does not enter nested keymaps or inherited (parent) keymaps.

-- jonas



[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 48-done <at> debbugs.gnu.org
Subject: bugs in (loop for ... being the key-codes|key-seqs ...)
Date: Tue, 18 Mar 2008 22:39:16 -0400
I changed the documentation to match the behavior of the code.


        Stefan


This bug report was last modified 17 years and 127 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.