Subject: Re: bug#57907: 29.0.50; Using keywords with cl-loop

From: Gerd Möllmann <[email-masked]>
Date: Sun, 18 Sep 2022 14:38:36 +0200

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?