unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: philipk@posteo.net
Cc: 57907@debbugs.gnu.org
Subject: bug#57907: 29.0.50; Using keywords with cl-loop
Date: Sun, 18 Sep 2022 14:38:36 +0200	[thread overview]
Message-ID: <a032694d-a686-83f3-3520-a75515a35740@gmail.com> (raw)
In-Reply-To: <87tu54dh3t.fsf@posteo.net>

From: Philip Kaludercic @ 2022-09-18 12:03 UTC (permalink / raw)
   To: 57907


 > In Common Lisp the following to are equivalent
 >
 >    (loop :repeat 5 :collect t)
 >
 > and
 >
 >    (loop repeat 5 collect t)
 >
 > as keywords are shared among all packages.

Actually, that's not the reason why Common Lisp accepts that.  The 
reason is that the loop macro only looks at symbol names.  In Common Lisp

(symbol-name :a) => "A"
(symbol-package :a) => #<PACKAGE "KEYWORD">
(symbol-name foo:a) => "A"
(symbol-package foo:a) => #<PACKAGE "FOO">

while in Emacs

(symbol-name :a) => ":a"

Wouldn't it be nice if Emacs finally decided to have Common Lisp packages?






  parent reply	other threads:[~2022-09-18 12:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-18 12:03 bug#57907: 29.0.50; Using keywords with cl-loop Philip Kaludercic
2022-09-18 12:20 ` Lars Ingebrigtsen
2022-09-18 12:28   ` Philip Kaludercic
2022-09-18 12:37     ` Lars Ingebrigtsen
2022-09-18 12:46       ` Philip Kaludercic
2022-09-19  8:06         ` Lars Ingebrigtsen
2022-09-19 10:16           ` Philip Kaludercic
2022-09-19 12:52             ` Lars Ingebrigtsen
     [not found] ` <handler.57907.B.166350264228653.ack@debbugs.gnu.org>
2022-09-18 12:26   ` bug#57907: Acknowledgement (29.0.50; Using keywords with cl-loop) Philip Kaludercic
2022-09-18 20:12     ` Philip Kaludercic
2022-09-18 12:38 ` Gerd Möllmann [this message]
2022-09-18 12:52   ` bug#57907: 29.0.50; Using keywords with cl-loop Philip Kaludercic
2022-09-18 13:01     ` Gerd Möllmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a032694d-a686-83f3-3520-a75515a35740@gmail.com \
    --to=gerd.moellmann@gmail.com \
    --cc=57907@debbugs.gnu.org \
    --cc=philipk@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).