From: Andrea Corallo <acorallo@gnu.org>
To: Robert Boyer <robertstephenboyer@gmail.com>
Cc: 69470@debbugs.gnu.org
Subject: bug#69470: bug in cl-return-from
Date: Thu, 29 Feb 2024 11:59:08 -0500 [thread overview]
Message-ID: <yp1ttlr436r.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <CAP9n0TOMbQSimn2KMrU_WuKRH2SO8gZRrqZ3t-2e696YccDMUg@mail.gmail.com> (Robert Boyer's message of "Thu, 29 Feb 2024 08:13:50 -0600")
Robert Boyer <robertstephenboyer@gmail.com> writes:
> It is almost certainly a bug in the definition of cl-return-from that the following
> does not work. I have no idea whether it is possible to fix. Could be really hard
> or undesirable to fix. I know nothing.
>
> Emacs is great beyond words.
>
> Thanks so much,
>
> Bob
>
> (defun foo () (cl-return-from foo 3))
> (foo)
>
> I strongly believe that in Common Lisp, every (defun foo ...) wraps
> a block named foo around the ...
Hi Bob,
unfortunately or not, this is elisp not CL :)
If you want to do that the following works:
(cl-defun foo () (cl-return-from foo 3))
(foo) => 3
Best Regards
Andrea
next prev parent reply other threads:[~2024-02-29 16:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-29 14:13 bug#69470: bug in cl-return-from Robert Boyer
2024-02-29 16:59 ` Andrea Corallo [this message]
2024-02-29 17:06 ` Robert Boyer
2024-03-02 7:48 ` Eli Zaretskii
2024-03-02 8:59 ` Robert Boyer
2024-03-02 11:11 ` Eli Zaretskii
2024-03-02 12:17 ` Robert Boyer
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=yp1ttlr436r.fsf@fencepost.gnu.org \
--to=acorallo@gnu.org \
--cc=69470@debbugs.gnu.org \
--cc=robertstephenboyer@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 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.