[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: table-of-contents for multiple books per ly-file
From: |
Thomas Morley |
Subject: |
Re: table-of-contents for multiple books per ly-file |
Date: |
Sat, 19 Nov 2022 19:40:51 +0100 |
Am Sa., 19. Nov. 2022 um 14:48 Uhr schrieb Jean Abou Samra <jean@abou-samra.fr>:
>
> 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
>
>
Hi Jean,
thanks for the hint.
Attached my current (ugly) workaround.
Thanks,
Harm
toc-multiple-books.ly
Description: Text Data