]> 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>
Sun, 21 Jan 2007 14:30:09 +0000 (15:30 +0100)
lily/parse-scm.cc

index fabc5c2e891d943161c56f765c25fae3558c1967..c4d535d85dbe94b3be7833b40997bc16d06c7479 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);