for -dno-point-and-click
* lily/grob.cc (get_print_stencil): don't read
point_and_click_global to determine whether to set grob-cause.
+2006-05-29 Han-Wen Nienhuys <hanwen@lilypond.org>
+
+ * scm/framework-ps.scm (write-preamble): redefine mark_URI to nop
+ for -dno-point-and-click
+
+ * lily/grob.cc (get_print_stencil): don't read
+ point_and_click_global to determine whether to set grob-cause.
+
2006-05-28 Han-Wen Nienhuys <hanwen@lilypond.org>
* buildscripts/output-distance.py (main): new function.
else
{
SCM expr = m->expr ();
- if (point_and_click_global)
- expr = scm_list_3 (ly_symbol2scm ("grob-cause"),
- self_scm (), expr);
+ expr = scm_list_3 (ly_symbol2scm ("grob-cause"),
+ self_scm (), expr);
retval = Stencil (m->extent_box (), expr);
}
SCM rot = get_property ("rotation");
- if (rot != SCM_EOL)
+ if (scm_is_pair (rot))
{
Real angle = scm_to_double (scm_car (rot));
Real x = scm_to_double (scm_cadr (rot));
(display (procset "music-drawing-routines.ps") port)
(display (procset "lilyponddefs.ps") port)
+ (if (not (ly:get-option 'point-and-click))
+ (display "/mark_URI { pop pop pop pop pop } bind def\n" port))
+
(display "%%EndProlog\n" port)
(display "%%BeginSetup\ninit-lilypond-parameters\n%%EndSetup\n\n" port))