[Top][All Lists]

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

Re: regression: point-and-click no longer includes absolute path

From: Mark Knoop
Subject: Re: regression: point-and-click no longer includes absolute path
Date: Tue, 17 May 2016 08:31:00 +0100

Thanks Urs,

At 09:37 on 13 May 2016, Urs Liska wrote:
>Which version of LilyPond and what Linux exactly do you use (2.19.40
>binary release?)?

lilypond 2.19.40, on Fedora 23, distro build (lilypond-2.19.40-1.fc23)

However I have just downloaded 2.19.41 binary release from lilypond.org
and see the same behavior (I added { c } to the code below to
generate a pdf):

GNU LilyPond 2.19.41
Processing `testpaths.ly'
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `/tmp/lilypond-DUHuav'...
Converting to `testpaths.pdf'...
Deleting `/tmp/lilypond-DUHuav'...
Success: compilation successfully completed

The point-and-click link in the resulting pdf is relative:
textedit://testpaths.ly:9:2:3 - and therefore doesn't work.

>Compiling your example with LilyPond built from current master gives
>Starting lilypond 2.19.42 [Untitled]...
>Processing `/tmp/frescobaldi-dW8ldh/tmpTuF3xf/document.ly'
>Success: compilation successfully completed

Hmm, that's interesting. Is this perhaps because you are running via
frescobaldi which passes the full pathname of the file to lilypond? Can
you try running directly with a relative path.

ly:input-file-line-char-column seems to return the path which is given
on the commandline, whether it is relative or absolute. 

>(and that what was the case when I made that change (and obviously
>noone had objections then)).
>So please show me what you get in return from that function on your
>system. Or an example where point-and-click links are actually
>generated relatively and break anything.
>Am 13.05.2016 um 09:16 schrieb Mark Knoop:
>> The commit below has broken point-and-click links for me on Linux.
>> Embedded paths are now relative rather than absolute. It seems the
>> assumption in the commit message that an absolute path is always
>> returned is incorrect, as can be seen with the following example.
>> Reverting scm/output-ps.scm fixes the problem.
>> \version "2.19.40"
>> testpaths =
>> #(define-void-function
>>    (parser location)
>>    ()
>>    (display (car (ly:input-file-line-char-column location))))
>> \testpaths
>> commit f30a8189adbbeefa2103e2c2e194040f66bc2291
>> Refs: release/2.19.27-1-280-gf30a818
>> Author:     Urs Liska <address@hidden>
>> AuthorDate: Tue Jan 19 10:52:33 2016 +0100
>> Commit:     Urs Liska <address@hidden>
>> CommitDate: Sun Jan 24 21:24:52 2016 +0100
>>     #4747: Remove (all) uses of is-absolute?
>>     The check for absolute paths in  in output-ps.scm
>>     and -svg.scm is unnecessary because
>>     (car ly:input-file-line-char-column a-location)
>>     always returns an absolute, slashified path
>>     Now is-absolute? is not used anymore by LilyPond itself.

Mark Knoop

Attachment: testpaths.ly
Description: Text Data

Attachment: testpaths.pdf
Description: Adobe PDF document

reply via email to

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