[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: table-of-contents for multiple books per ly-file
From: |
Jean Abou Samra |
Subject: |
Re: table-of-contents for multiple books per ly-file |
Date: |
Sat, 19 Nov 2022 14:48:38 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 |
Le 19/11/2022 à 14:43, Thomas Morley a écrit :
Though, I can't use a modified version of the new code setting
`toc-items' because dong so in an own ly-file causes:
fatal error: call-after-session used after session start
This comes from
(call-after-session (lambda ()
(hash-clear! toc-hashtab)
(set! toc-alist '())
(hash-clear! toc-name-id-hashtab)))
This clears the TOC data structures after processing each
.ly file, to ensure there are no leaks from a .ly file to
the next if processing several files with the same lilypond
invocation.
call-after-session can only be used in LilyPond's internal
.ly files, not in user files.
If you don't care about that, just delete it.
Best,
Jean
OpenPGP_signature
Description: OpenPGP digital signature