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


Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to