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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48 in the body.
You can then email your comments to 48 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#48; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to "Jonas Bernoulli" <jonas <at> bernoulli.cc>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

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





Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to "Jonas Bernoulli" <jonas <at> bernoulli.cc>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at 48-done <at> emacsbugs.donarmstrong.com (full text, mbox):

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




bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Wed, 16 Apr 2008 14:24:02 GMT) Full text and rfc822 format available.

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

Previous Next


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