GNU bug report logs - #14369
24.3; loop docstring does not mention hash-map

Previous Next

Package: emacs;

Reported by: Wilfred Hughes <wilfred <at> editd.com>

Date: Wed, 8 May 2013 15:45:02 UTC

Severity: minor

Found in version 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

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 14369 in the body.
You can then email your comments to 14369 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-gnu-emacs <at> gnu.org:
bug#14369; Package emacs. (Wed, 08 May 2013 15:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Wilfred Hughes <wilfred <at> editd.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 08 May 2013 15:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Wilfred Hughes <wilfred <at> editd.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; loop docstring does not mention hash-map
Date: Wed, 8 May 2013 14:29:39 +0100
[Message part 1 (text/plain, inline)]
Emacs' implementation of cl-loop includes support for the for-as-hash part
of Common Lisp's loop grammar.

The grammar:

for-as-hash::= var [type-spec] being {each | the}
               {{hash-key | hash-keys} {in | of} hash-table
                [using (hash-value other-var)] |
                {hash-value | hash-values} {in | of} hash-table
                [using (hash-key other-var)]}

Example usage:

(loop for key being the hash-keys of #s(hash-table data (1 2 3 4))
      do (message "key: %s" key))

However, the docstring for cl-loop does not mention this syntax. I believe
it should.

Thanks
Wilfred
[Message part 2 (text/html, inline)]

Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Fri, 10 May 2013 02:03:01 GMT) Full text and rfc822 format available.

Notification sent to Wilfred Hughes <wilfred <at> editd.com>:
bug acknowledged by developer. (Fri, 10 May 2013 02:03:02 GMT) Full text and rfc822 format available.

Message #10 received at 14369-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 14369-done <at> debbugs.gnu.org
Subject: Re: bug#14369: 24.3; loop docstring does not mention hash-map
Date: Thu, 09 May 2013 22:01:58 -0400
Version: 24.4

OK.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 07 Jun 2013 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 13 days ago.

Previous Next


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