[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using a hash-table context property
From: |
David Kastrup |
Subject: |
Re: Using a hash-table context property |
Date: |
Mon, 19 Feb 2018 14:53:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Dan Eble <address@hidden> writes:
> On Feb 17, 2018, at 16:10, Dan Eble <address@hidden> wrote:
>> On Feb 17, 2018, at 15:13, David Kastrup <address@hidden> wrote:
>>> #(call-after-session
>>> (lambda ()
>>> (hash-clear! default-fret-table)
>>> (hash-clear! chord-shape-table)))
>>
>> I see. Thanks again.
>
> That didn’t solve my problem. LilyPond appears to process multiple
> scores in the same session.
Oh yes. A "session" means one file on the command line, not one score.
Separate files on the command line will get processed independently (as
independent as LilyPond manages separating sessions).
> I found that clearing the hash table in my engraver’s initialize()
> method did the trick. In the end, I will probably copy the table in
> initialize() and restore the original in finalize().
Probably one way to do this.
--
David Kastrup