From: Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 59786@debbugs.gnu.org
Cc: monnier@iro.umontreal.ca
Subject: bug#59786: Allowing arbitrary expressions in cl-labels
Date: Tue, 29 Oct 2024 13:28:01 +0100 [thread overview]
Message-ID: <874j4vw0tq.fsf@web.de> (raw)
In-Reply-To: <jwv1q01lynb.fsf-monnier+emacs@gnu.org> (Stefan Monnier via's message of "Sun, 27 Oct 2024 23:07:45 -0400")
Hi Stefan,
> -forms of the function body. FUNC is defined in any BODY, as well
> +forms of the function body. FUNC is defined in any BODY or EXP, as well
^^^^^^
This is unfortunately not correct, e.g.
(cl-labels ((even (if (odd 5)
(lambda (x) (if (= x 0) t (odd (1- x))))
#'ignore))
(odd (lambda (x) (if (= x 0) nil (even (1- x))))))
(list (even 42) (odd 42)))
~~> funcall: Symbol's function definition is void: nil
Only preceding definitions can be used in the EXP.
Dunno how useful it is at all that the EXPs can use any of the defined
functions.
Michael.
next prev parent reply other threads:[~2024-10-29 12:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-02 19:44 bug#59786: Allowing arbitrary expressions in cl-labels Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-02 20:29 ` Drew Adams
2023-01-13 13:47 ` Michael Heerdegen
2024-10-28 3:07 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-29 12:28 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-10-29 14:51 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-29 15:49 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-15 17:11 ` Sean Whitton
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874j4vw0tq.fsf@web.de \
--to=bug-gnu-emacs@gnu.org \
--cc=59786@debbugs.gnu.org \
--cc=michael_heerdegen@web.de \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.