From: Robert Boyer <robertstephenboyer@gmail.com>
To: Andrea Corallo <acorallo@gnu.org>
Cc: 69470@debbugs.gnu.org
Subject: bug#69470: bug in cl-return-from
Date: Thu, 29 Feb 2024 11:06:18 -0600 [thread overview]
Message-ID: <CAP9n0TNhKVWyYFuPrJmc-i7DeJUO1wA3m4K8WpeUPe-u77fM=w@mail.gmail.com> (raw)
In-Reply-To: <yp1ttlr436r.fsf@fencepost.gnu.org>
[-- Attachment #1: Type: text/plain, Size: 883 bytes --]
Got it. Thank you so very much.
Bob
On Thu, Feb 29, 2024 at 10:59 AM Andrea Corallo <acorallo@gnu.org> wrote:
> 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
>
[-- Attachment #2: Type: text/html, Size: 1377 bytes --]
next prev parent reply other threads:[~2024-02-29 17:06 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
2024-02-29 17:06 ` Robert Boyer [this message]
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='CAP9n0TNhKVWyYFuPrJmc-i7DeJUO1wA3m4K8WpeUPe-u77fM=w@mail.gmail.com' \
--to=robertstephenboyer@gmail.com \
--cc=69470@debbugs.gnu.org \
--cc=acorallo@gnu.org \
/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.