[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "In procedure list-tail in expression (list-tail input-file (- # 2))
From: |
Jeffery Shivers |
Subject: |
Re: "In procedure list-tail in expression (list-tail input-file (- # 2)): value out of range" |
Date: |
Tue, 21 Mar 2017 13:41:50 -0400 |
On Tue, Mar 21, 2017 at 1:28 PM, Jeffery Shivers
<address@hidden> wrote:
> On Tue, Mar 21, 2017 at 1:18 PM, Urs Liska <address@hidden> wrote:
>>>The problem was subtracting 2 from (length input-file) for `ctx`:
>>> (input-file (string-split (car (ly:input-file-line-char-column
>>>(*location*))) #\/ ))
>>> (ctx (list-tail input-file (- (length input-file) 2)))
>>>
>>>This corrects that:
>>> (ctx (list-tail input-file (- (length input-file) 1)))
>>>
>>>Sorry for the noise everyone. Don't know why I didn't look there
>>>before posting. Should have eaten my Wheaties first.
>>
>> Ehm, doesn't that break things in other situations? I assume the "2" is
>> there fir a reason ...
>
> So far, no. `cd`ing all around the system (up, down, to the side), it
> does just fine. I don't know what other situations you'd have in mind
> though.
Scratch that.
>
> --
>
> Jeffery Shivers
> jefferyshivers.com
> soundcloud.com/jefferyshivers
--
Jeffery Shivers
jefferyshivers.com
soundcloud.com/jefferyshivers