lilypond-devel
[Top][All Lists]
Advanced

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

Re: \sourcefileline


From: Han-Wen Nienhuys
Subject: Re: \sourcefileline
Date: Tue, 01 Aug 2006 00:26:42 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060614)

Erik Sandberg schreef:
Hi,

The attached patch makes lilypond-book display lilypond errors
correctly, so file name and line number always points to the right
spot in the tely/ly/itely source file, using standard file:line:col
notation.

I have introduced a command \sourcefileline in the lexer, and then
modified lily-book to use this command.

sourcefilenameline works as follows:

\sourcefilename "foo.tely"
\sourcefileline 100
\x

=>
foo.tely:101:0: error: unknown escaped string

The \sourcefileline command is implemented in a dirty way, using
sscanf. Should I attempt to softcode \sourcefilename, \sourcefileline
and \version?

No, this is ok. Please apply.

--

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

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