lilypond-auto
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lilypond-auto] Issue 3283 in lilypond: Patch: Stop table of content


From: lilypond
Subject: Re: [Lilypond-auto] Issue 3283 in lilypond: Patch: Stop table of contents bleedover
Date: Tue, 02 Apr 2013 08:33:13 +0000


Comment #5 on issue 3283 by address@hidden: Patch: Stop table of contents bleedover
http://code.google.com/p/lilypond/issues/detail?id=3283

Ok, this one is tricky: I've moved part of the toc stuff to a separate scm module that gets imported by toc-init.ly. The snippet in question calls add-toc-item! from the imported module. This works in the first file/session compiled, but when the current module gets forgotten for the next file on the command line and a new module is created and all its variables get reset to their value before the run, the module imports don't reappear.

There are several possible solutions: one is to reinstate any imported modules for future runs, and that makes independent sense.

Another is to allow the specification of end-of-session code that could be used in the original code to clear out the table-of-contents let-variable that is only visible to some closures. This approach tampers a lot less with the original code.

Another is to make this variable visible without a separate module, defeating the original intent of the closure.

I'll probably go for both the first as well as the second approach.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings



reply via email to

[Prev in Thread] Current Thread [Next in Thread]