From: Jean Abou Samra <jean@abou-samra.fr>
To: Olivier Dion <olivier.dion@polymtl.ca>
Cc: Lilypond-User Mailing List <lilypond-user@gnu.org>,
guile-user <guile-user@gnu.org>
Subject: Re: exit-hook never executed
Date: Fri, 30 Sep 2022 17:48:18 +0200 [thread overview]
Message-ID: <510DBF8E-B96C-4E5E-8051-1C102B2F3AEE@abou-samra.fr> (raw)
In-Reply-To: <87tu4okh8q.fsf@laura>
Oh dear, I sent my reply to the wrong list and now we’re discussing on lilypond-user instead of guile-user. Sorry LilyPond folks, this was not for this list. Forwarding to guile-user, please remove lilypond-user when replying.
> Le 30 sept. 2022 à 17:35, Olivier Dion <olivier.dion@polymtl.ca> a écrit :
>
> On Sun, 25 Sep 2022, Jean Abou Samra <jean@abou-samra.fr> wrote:
>
>> It looks like Guile only uses exit-hook for (ice-9 readline), so it
>> doesn't bother to call it when not running as REPL.
>
> Right it looks like it.
>
>> Maybe you could use a finalizer attached to a C global variable?
>> (I didn't test.)
>
> I don't think finalizer would be good enough since there's no guaranteed
> that it's called? I've opted for a syntax rule that expand into a
> dynamic wind.
>
next parent reply other threads:[~2022-09-30 15:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87tu4okh8q.fsf@laura>
2022-09-30 15:48 ` Jean Abou Samra [this message]
2022-09-22 16:25 exit-hook never executed Olivier Dion via General Guile related discussions
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/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=510DBF8E-B96C-4E5E-8051-1C102B2F3AEE@abou-samra.fr \
--to=jean@abou-samra.fr \
--cc=guile-user@gnu.org \
--cc=lilypond-user@gnu.org \
--cc=olivier.dion@polymtl.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.
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).