From: Thuna <thuna.cing@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Catching arbitrary throws
Date: Fri, 08 Mar 2024 00:10:39 +0100 [thread overview]
Message-ID: <87sf11ocy8.fsf@gmail.com> (raw)
Is there an equivalent of `condition-case' for throws? I am
specifically looking to catch any and all throws, as though with the
symbol `t' in `condition-case'.
Catching `cl-return-from' only would work for my purposes as well (with
some `cl-define-compiler-macro' magic, perhaps, though I have not looked
into it much) but I would prefer a general solution.
It might also be possible to do something with `unwind-protect', which
does activate with throws, but I need to have access to the thrown
symbol and value and I don't know how to do that.
next reply other threads:[~2024-03-07 23:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-07 23:10 Thuna [this message]
2024-03-08 7:18 ` Catching arbitrary throws Eli Zaretskii
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=87sf11ocy8.fsf@gmail.com \
--to=thuna.cing@gmail.com \
--cc=help-gnu-emacs@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.
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).