]> git.donarmstrong.com Git - lilypond.git/commit
Issue 2172: Get line and column numbers right.
authorDavid Kastrup <dak@gnu.org>
Thu, 13 Dec 2012 10:53:02 +0000 (11:53 +0100)
committerDavid Kastrup <dak@gnu.org>
Fri, 21 Dec 2012 16:37:59 +0000 (17:37 +0100)
commit314587c0714437b058c04173d81ad79db7452e73
tree0ae01acbd951987539b10161907c39d2d88db6dd
parent4c4c59acd68533e6ce152a13707027443f387897
Issue 2172: Get line and column numbers right.

This uses 1-based columns on all error output, as is the standard for
GNU programs.  It also flags version errors as being for line 1
instead of line 0 since the latter confuses Emacs' compilation mode.

The same column convention is used for point-and-click column numbers
in textedit:// URIs.  In contrast, the byte offsets into a line (also
in those URIs) are retained 0-based.

For point-and-click, this yields the correct results when using the
definitions for emacs and gvim in scm/editor.scm, the editors
configured to interpret the column number.

It is to be expected that Lilypond-specific shells (like Frescobaldi
called via Okular for point-and-click) have specialized on the
previous wrong behavior and will now exhibit the kind of one-off
behavior that non-LilyPond specific programs did previously when
encountering the error messages.

I don't see a good migration strategy for those except possibly
looking for the version number of LilyPond and deciding whether to do
one-off calculations depending on that.
Documentation/changes.tely
lily/source-file.cc
scm/lily-library.scm
scm/output-ps.scm