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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Wilfred Hughes <wilfred <at> editd.com>
Subject: bug#14369: closed (Re: bug#14369: 24.3; loop docstring does not
 mention hash-map)
Date: Fri, 10 May 2013 02:03:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#14369: 24.3; loop docstring does not mention hash-map

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 14369 <at> debbugs.gnu.org.

-- 
14369: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14369
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.

[Message part 3 (message/rfc822, inline)]
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 4 (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 5 (text/html, inline)]

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

Previous Next


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