Subject: bug#14369: closed (Re: bug#14369: 24.3; loop docstring does not mention hash-map)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 10 May 2013 02:03:02 +0000

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 [email-masked].

-- 
14369: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14369
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#14369: 24.3; loop docstring does not mention hash-map
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Thu, 09 May 2013 22:01:58 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 24.4

OK.

Subject: 24.3; loop docstring does not mention hash-map
From: Wilfred Hughes <[email-masked]>
To: [email-masked]
Date: Wed, 8 May 2013 14:29:39 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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