From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: akater <nuclearspace@gmail.com>
Cc: 72200@debbugs.gnu.org
Subject: bug#72200: 30.0.50; cl-flet over cl-symbol-macrolet may expand improperly
Date: Sun, 21 Jul 2024 18:09:50 -0400 [thread overview]
Message-ID: <jwv5xsy1jt2.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87v8112opo.fsf@gmail.com> (akater's message of "Fri, 19 Jul 2024 18:58:43 +0000")
> The issue is with recent Emacs built from vcs.
>
> emacs -Q --batch --eval "(progn (require 'cl-macs) (cl-flet ((f () (print
> \"f is called\"))) (cl-symbol-macrolet ((x (f))) (setf x 'x1))))"
>
> attempts to call (setf funcall) which is not defined. It should call
> (setf f) instead.
The interaction between `cl-flet` and `cl-symbol-macrolet` is
pretty delicate.
The interaction between `cl-flet` and `(setf f)` is beyond delicate
(AFAIK we've never claimed to support it, tho IIRC there were cases
where it happened to DTRT, a bit like a broken clock).
Combining the two is sure to bring fun for the whole family, yes. 🙁
Stefan
prev parent reply other threads:[~2024-07-21 22:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-19 18:58 bug#72200: 30.0.50; cl-flet over cl-symbol-macrolet may expand improperly akater
2024-07-19 20:16 ` Stefan Kangas
2024-07-21 22:09 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
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=jwv5xsy1jt2.fsf-monnier+emacs@gnu.org \
--to=bug-gnu-emacs@gnu.org \
--cc=72200@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=nuclearspace@gmail.com \
/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).