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

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

bug#69470: bug in cl-return-from


From: Robert Boyer
Subject: bug#69470: bug in cl-return-from
Date: Thu, 29 Feb 2024 11:06:18 -0600

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

reply via email to

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