]> git.donarmstrong.com Git - lilypond.git/commitdiff
set column & line numbers for embedded-Scheme reads.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 21 Jan 2007 14:30:09 +0000 (15:30 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 22 Jan 2007 17:31:33 +0000 (18:31 +0100)
lily/parse-scm.cc

index c8d8d36bfab2f2ca2a393d9c17c6e00c7dd42917..0a6fac92c429f91fdcf05e5c3a7c345dcb4165a4 100644 (file)
@@ -31,6 +31,9 @@ internal_ly_parse_scm (Parse_start *ps)
   scm_seek (port, scm_long2num (off), scm_long2num (SEEK_SET));
   SCM from = scm_ftell (port);
 
+  scm_set_port_line_x (port,  scm_from_int (ps->start_location_.line_number () -1));
+  scm_set_port_column_x (port,  scm_from_int (ps->start_location_.column_number () -1));
+  
   SCM answer = SCM_UNSPECIFIED;
   SCM form = scm_read (port);