bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68345: 29.1; cl-defstruct'ed struct errors out in the constructor co


From: Eli Zaretskii
Subject: bug#68345: 29.1; cl-defstruct'ed struct errors out in the constructor compiler macro if a slot is called "quote"
Date: Tue, 09 Jan 2024 16:19:27 +0200

> Date: Tue, 9 Jan 2024 21:32:06 +0900
> From:  Kisaragi Hiu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> * The problem
> 
> If a struct is defined to have a slot called "quote", the constructor
> will fail during the compiler macro phase.
> 
>      (require 'cl-lib)
>      (cl-defstruct my-test quote)
>      (make-my-test :quote "'") ; error: (invalid-function "'")

'quote' is a documented special form in Emacs, see the node "Quoting"
in the ELisp manual.

Adding Stefan to the discussion.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]