From unknown Tue Jun 17 22:20:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14369: 24.3; loop docstring does not mention hash-map Resent-From: Wilfred Hughes Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 May 2013 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14369 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 14369@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136802786324860 (code B ref -1); Wed, 08 May 2013 15:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 May 2013 15:44:23 +0000 Received: from localhost ([127.0.0.1]:34002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ua6XV-0006St-RV for submit@debbugs.gnu.org; Wed, 08 May 2013 11:44:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47050) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ua4Su-0006zP-GZ for submit@debbugs.gnu.org; Wed, 08 May 2013 09:31:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ua4Rh-0008RR-FT for submit@debbugs.gnu.org; Wed, 08 May 2013 09:30:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:57963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua4Rh-0008RM-CE for submit@debbugs.gnu.org; Wed, 08 May 2013 09:30:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua4Ra-0002q2-Ol for bug-gnu-emacs@gnu.org; Wed, 08 May 2013 09:30:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ua4RU-00086v-FF for bug-gnu-emacs@gnu.org; Wed, 08 May 2013 09:30:06 -0400 Received: from mail-oa0-f42.google.com ([209.85.219.42]:43269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua4RU-00086i-AJ for bug-gnu-emacs@gnu.org; Wed, 08 May 2013 09:30:00 -0400 Received: by mail-oa0-f42.google.com with SMTP id i10so1995255oag.1 for ; Wed, 08 May 2013 06:29:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-originating-ip:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=HB1Ae+Q3/3EypWbYM46NIL5pTCltmThZSPr6bucFmIk=; b=Bq3X1XY7LWDjz8M55VXwis5RFAjpbRoUXGY/PzfZ7Iew2PRlHSgi7Ha7T0w2xuccRh fumZU7q+iY9ozdjpQG473p7ozygTC6Xhruiq36wmo0/mAS/0n83SnoQ1aHLB3cEoZTyH S1nIfFsgzQX/VzGEl6gP27hlm5eEZhrLyB2DkNz0LMGoH5X6NUgWJ3nNbC79Bx7AYgQ7 RALYIE6xhmex7xYqLKvUCWwo2xrXboWVsOlWzUw0BZbSVqYKaNklEEwiF0XmWdLkKkIx BpecdJcg2SybeQyp2SlthKb8GVj0mREH2hRhlxgIJcYMxhB1qQeiTyXi0TQXiej7ccEo KPFg== X-Received: by 10.60.47.1 with SMTP id z1mr2086713oem.134.1368019799200; Wed, 08 May 2013 06:29:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.12.66 with HTTP; Wed, 8 May 2013 06:29:39 -0700 (PDT) X-Originating-IP: [109.231.200.166] From: Wilfred Hughes Date: Wed, 8 May 2013 14:29:39 +0100 Message-ID: Content-Type: multipart/alternative; boundary=001a11c2103e2db29704dc34ee70 X-Gm-Message-State: ALoCoQkVvKIti3c28RNksq/I/z8XsDTaiReX7cIb4t1sFA7CVQ9WAHoAz7ZMVxu9kRzVUCpyKZCw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Wed, 08 May 2013 11:44:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) --001a11c2103e2db29704dc34ee70 Content-Type: text/plain; charset=UTF-8 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 --001a11c2103e2db29704dc34ee70 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Emacs' implementation of cl-loop includes support for = the for-as-hash part of Common Lisp's loop grammar.

The grammar:=

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

Example usage:

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

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

Thanks
Wilfred

--001a11c2103e2db29704dc34ee70-- From unknown Tue Jun 17 22:20:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Wilfred Hughes Subject: bug#14369: closed (Re: bug#14369: 24.3; loop docstring does not mention hash-map) Message-ID: References: X-Gnu-PR-Message: they-closed 14369 X-Gnu-PR-Package: emacs Reply-To: 14369@debbugs.gnu.org Date: Fri, 10 May 2013 02:03:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1368151382-25232-1" This is a multi-part message in MIME format... ------------=_1368151382-25232-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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@debbugs.gnu.org. --=20 14369: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D14369 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1368151382-25232-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 14369-done) by debbugs.gnu.org; 10 May 2013 02:02:08 +0000 Received: from localhost ([127.0.0.1]:35178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uaceu-0006W1-6P for submit@debbugs.gnu.org; Thu, 09 May 2013 22:02:08 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:49069) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uaces-0006Vr-Fi for 14369-done@debbugs.gnu.org; Thu, 09 May 2013 22:02:07 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Uacek-0007Gb-CY; Thu, 09 May 2013 22:01:58 -0400 From: Glenn Morris To: 14369-done@debbugs.gnu.org Subject: Re: bug#14369: 24.3; loop docstring does not mention hash-map References: X-Spook: Leitrim Kh-11 illuminati Forte national information X-Ran: VTF=UOGEp~J%:N{2hDoX-nf~}O$;Wl(&d}-z_m}~lE$-H.w@^2u&v|`rL>w*EoKzOu;zm( X-Hue: cyan X-Attribution: GM Date: Thu, 09 May 2013 22:01:58 -0400 In-Reply-To: (Wilfred Hughes's message of "Wed, 8 May 2013 14:29:39 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 14369-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -8.1 (--------) Version: 24.4 OK. ------------=_1368151382-25232-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 May 2013 15:44:23 +0000 Received: from localhost ([127.0.0.1]:34002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ua6XV-0006St-RV for submit@debbugs.gnu.org; Wed, 08 May 2013 11:44:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47050) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ua4Su-0006zP-GZ for submit@debbugs.gnu.org; Wed, 08 May 2013 09:31:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ua4Rh-0008RR-FT for submit@debbugs.gnu.org; Wed, 08 May 2013 09:30:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:57963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua4Rh-0008RM-CE for submit@debbugs.gnu.org; Wed, 08 May 2013 09:30:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua4Ra-0002q2-Ol for bug-gnu-emacs@gnu.org; Wed, 08 May 2013 09:30:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ua4RU-00086v-FF for bug-gnu-emacs@gnu.org; Wed, 08 May 2013 09:30:06 -0400 Received: from mail-oa0-f42.google.com ([209.85.219.42]:43269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ua4RU-00086i-AJ for bug-gnu-emacs@gnu.org; Wed, 08 May 2013 09:30:00 -0400 Received: by mail-oa0-f42.google.com with SMTP id i10so1995255oag.1 for ; Wed, 08 May 2013 06:29:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-originating-ip:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=HB1Ae+Q3/3EypWbYM46NIL5pTCltmThZSPr6bucFmIk=; b=Bq3X1XY7LWDjz8M55VXwis5RFAjpbRoUXGY/PzfZ7Iew2PRlHSgi7Ha7T0w2xuccRh fumZU7q+iY9ozdjpQG473p7ozygTC6Xhruiq36wmo0/mAS/0n83SnoQ1aHLB3cEoZTyH S1nIfFsgzQX/VzGEl6gP27hlm5eEZhrLyB2DkNz0LMGoH5X6NUgWJ3nNbC79Bx7AYgQ7 RALYIE6xhmex7xYqLKvUCWwo2xrXboWVsOlWzUw0BZbSVqYKaNklEEwiF0XmWdLkKkIx BpecdJcg2SybeQyp2SlthKb8GVj0mREH2hRhlxgIJcYMxhB1qQeiTyXi0TQXiej7ccEo KPFg== X-Received: by 10.60.47.1 with SMTP id z1mr2086713oem.134.1368019799200; Wed, 08 May 2013 06:29:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.12.66 with HTTP; Wed, 8 May 2013 06:29:39 -0700 (PDT) X-Originating-IP: [109.231.200.166] From: Wilfred Hughes Date: Wed, 8 May 2013 14:29:39 +0100 Message-ID: Subject: 24.3; loop docstring does not mention hash-map To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11c2103e2db29704dc34ee70 X-Gm-Message-State: ALoCoQkVvKIti3c28RNksq/I/z8XsDTaiReX7cIb4t1sFA7CVQ9WAHoAz7ZMVxu9kRzVUCpyKZCw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 08 May 2013 11:44:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) --001a11c2103e2db29704dc34ee70 Content-Type: text/plain; charset=UTF-8 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 --001a11c2103e2db29704dc34ee70 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Emacs' implementation of cl-loop includes support for = the for-as-hash part of Common Lisp's loop grammar.

The grammar:=

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

Example usage:

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

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

Thanks
Wilfred

--001a11c2103e2db29704dc34ee70-- ------------=_1368151382-25232-1--