Re: conditional when-property function not working as intended

2016-09-16 Thread Kieren MacMillan
Hi David, > But we are not talking about music functions (where the quite different > "parser location" arguments are now usually passed implicitly) but > markup commands here. Ah! That would be the source of my confusion. Thank you, Kieren. Kieren MacMillan,

Re: conditional when-property function not working as intended

2016-09-16 Thread Kieren MacMillan
Hi David, > By not specifying a default value? I have absolutely no idea why you > put `markp' as the default-value of your call to ly:chain-assoc-get. Because this is somebody else’s code that I’m using, without (obviously) fully understanding what it does. With your hint, I believe I can now

Re: conditional when-property function not working as intended

2016-09-16 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> It's necessary for functions taking "layout props" arguments? Where >> would that cause reason for doubt? > > I thought I recalled a recent update (say, in the past 2 years) in > which those arguments were rendered

Re: conditional when-property function not working as intended

2016-09-16 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > > Thank you for the helpful reply and documentation/explanation. > >> -- Function: ly:chain-assoc-get key achain default-value >> strict-checking >> Return value for KEY from a list of alists ACHAIN. If no entry

Re: conditional when-property function not working as intended

2016-09-16 Thread Kieren MacMillan
Hi David, Thank you for the helpful reply and documentation/explanation. > -- Function: ly:chain-assoc-get key achain default-value > strict-checking > Return value for KEY from a list of alists ACHAIN. If no entry is > found, return DEFAULT-VALUE or ‘#f’ if DEFAULT-VALUE is

Re: conditional when-property function not working as intended

2016-09-16 Thread Kieren MacMillan
Hi David, > It's necessary for functions taking "layout props" arguments? Where > would that cause reason for doubt? I thought I recalled a recent update (say, in the past 2 years) in which those arguments were rendered unnecessary when writing certain music functions — but apparently, I’m

Re: conditional when-property function not working as intended

2016-09-15 Thread David Kastrup
Kieren MacMillan writes: > Hi all, > > Solved my own problem (I think?): the modified version (below) appears to > work as expected. > > On a related topic: I [clearly] don’t understand when “layout props” > is necessary, and when it’s not. It's necessary for

Re: conditional when-property function not working as intended

2016-09-15 Thread David Kastrup
Kieren MacMillan writes: > Hello all, > > In the snippet included below, I’m hoping the second line of the > scoreTitleMarkup will take no vertical space. If you comment out that line, > you’ll see that it *does* take no space, but when it’s included, so is the

Re: conditional when-property function not working as intended

2016-09-15 Thread Kieren MacMillan
Hi all, Solved my own problem (I think?): the modified version (below) appears to work as expected. On a related topic: I [clearly] don’t understand when “layout props” is necessary, and when it’s not. Is this explained in the docs somewhere? Thanks, Kieren. SNIPPET BEGINS \version

conditional when-property function not working as intended

2016-09-15 Thread Kieren MacMillan
Hello all, In the snippet included below, I’m hoping the second line of the scoreTitleMarkup will take no vertical space. If you comment out that line, you’ll see that it *does* take no space, but when it’s included, so is the 25mm spacing that is [I thought] conditional on the presence of a