]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/layout-page-layout.scm (write-page-breaks): record tweaks
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 25 Jan 2006 16:05:38 +0000 (16:05 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 25 Jan 2006 16:05:38 +0000 (16:05 +0000)
for different \score blocks separately.
(post-process-pages): put write-page-layout into paper block.

* lily/output-def.cc (get_parser): new file.

* lily/output-def-scheme.cc (LY_DEFINE): ly:output-def-parser, new
file.

* lily/include/output-def.hh (class Output_def): add parser_ member.

* input/regression/page-layout-twopass.ly (Module): new file.

* scm/lily.scm: remove cpp hack.

30 files changed:
ChangeLog
input/regression/page-layout-twopass.ly [new file with mode: 0644]
lily/book.cc
lily/context.cc
lily/global-context-scheme.cc
lily/grob-scheme.cc
lily/grob.cc
lily/include/context.hh
lily/include/lily-proto.hh
lily/include/object-key.hh
lily/include/output-def.hh
lily/include/paper-score.hh
lily/include/score.hh
lily/include/system.hh
lily/lily-parser-scheme.cc
lily/lily-parser.cc
lily/lilypond-key.cc
lily/object-key-dumper.cc
lily/object-key.cc
lily/output-def-scheme.cc
lily/output-def.cc
lily/paper-outputter.cc
lily/paper-score.cc
lily/parser.yy
lily/score-engraver.cc
lily/score.cc
lily/system.cc
scm/framework-ps.scm
scm/layout-page-layout.scm
scm/lily.scm

index c6d840e6aa37490a0e3544869d8cdfa70b66c39c..922fc191c3d7703b53e17f75dda7febe384d82fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 2006-01-25  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * scm/layout-page-layout.scm (write-page-breaks): record tweaks
+       for different \score blocks separately.
+       (post-process-pages): put write-page-layout into paper block.
+
+       * lily/output-def.cc (get_parser): new file.
+
+       * lily/output-def-scheme.cc (LY_DEFINE): ly:output-def-parser, new
+       file.
+
+       * lily/include/output-def.hh (class Output_def): add parser_ member.
+
+       * input/regression/page-layout-twopass.ly (Module): new file.
+
+       * scm/lily.scm: remove cpp hack.
+
        * lily/lyric-engraver.cc (get_voice_to_lyrics): use NPOS everywhere.
 
 2006-01-25  Jan Nieuwenhuizen  <janneke@gnu.org>
@@ -16,7 +31,7 @@
 
        * flower/interval.cc: 
        * flower/include/interval.hh: 
-       
+
        * flower/string-convert.cc: 
        * flower/include/string-convert.hh: Use std::string [interface].
        Update callers.
diff --git a/input/regression/page-layout-twopass.ly b/input/regression/page-layout-twopass.ly
new file mode 100644 (file)
index 0000000..c820b9a
--- /dev/null
@@ -0,0 +1,32 @@
+blabla = {
+\break
+\pageBreak
+\spacingTweaks #'((system-Y-extent -11.050006 . 0.0)
+ (system-refpoint-Y-extent -4.0 . -4.0)
+ (system-index . 0)
+ (page-system-count . 3)
+ (page-printable-height . 148.438777952756)
+ (page-space-left . -47.1596563937008))
+
+
+\skip 1*2/1\grace { \skip 1*1/16 }
+\break
+\spacingTweaks #'((system-Y-extent -11.050006 . 0.347445669291338)
+ (system-refpoint-Y-extent -4.0 . -4.0)
+ (system-index . 1)
+ (page-system-count . 3)
+ (page-printable-height . 148.438777952756)
+ (page-space-left . -47.1596563937008))
+
+
+\skip 1*1/1
+\break
+\spacingTweaks #'((system-Y-extent -8.0 . 0.313302362204724)
+ (system-refpoint-Y-extent -4.0 . -4.0)
+ (system-index . 2)
+ (page-system-count . 3)
+ (page-printable-height . 148.438777952756)
+ (page-space-left . -47.1596563937008))
+
+
+}
\ No newline at end of file
index 1d6edde999acb733da443ee9e67f136c04546765..58972afa7c924d26308b8b84b0e6c4c73bd59dba 100644 (file)
@@ -81,6 +81,7 @@ Book::add_score (SCM s)
   scores_ = scm_cons (s, scores_);
 }
 
+
 /* Concatenate all score outputs into a Paper_book
  */
 Paper_book *
index 852303f25de174c52f74eb8b97e51927559ca750..e2d597b15ac699b0e6076050ef2e8ef103019277 100644 (file)
@@ -264,6 +264,16 @@ Context::get_grob_key (String name)
   if (!use_object_keys)
     return 0;
 
+  return create_grob_key (name);
+}
+
+/*
+  We want to have a key for some objects anyway, so we can invent a
+  unique identifier for each (book,score) tuple.
+*/
+Object_key const *
+Context::create_grob_key (String name)
+{
   int disambiguation_count = 0;
   if (grob_counts_.find (name) != grob_counts_.end ())
     disambiguation_count = grob_counts_[name];
index bb2c60ab0801be0fe94449688e5d115b455cfe7c..115b7f180be1558c6c55a3c34a80c269fc0cc2b2 100644 (file)
@@ -36,8 +36,8 @@ LY_DEFINE (ly_run_translator, "ly:run-translator",
           "An interpretation context is set up,\n"
           "and @var{mus} is interpreted with it.  \n"
           "The context is returned in its final state.\n"
-
-          "\n\nOptionally, this routine takes an Object-key to\n"
+          "\n\n"
+          "Optionally, this routine takes an Object-key to\n"
           "to uniquely identify the Score block containing it.\n")
 {
   Output_def *odef = unsmob_output_def (output_def);
@@ -56,7 +56,8 @@ LY_DEFINE (ly_run_translator, "ly:run-translator",
 
   Cpu_timer timer;
 
-  Global_context *trans = new Global_context (odef, music->get_length (), unsmob_key (key));
+  Global_context *trans = new Global_context (odef, music->get_length (),
+                                             unsmob_key (key));
   if (!trans)
     {
       programming_error ("no toplevel translator");
@@ -68,7 +69,6 @@ LY_DEFINE (ly_run_translator, "ly:run-translator",
   SCM protected_iter = Music_iterator::get_static_get_iterator (music);
   Music_iterator *iter = unsmob_iterator (protected_iter);
   iter->init_translator (music, trans);
-
   iter->construct_children ();
 
   if (!iter->ok ())
index 15cf075a2531051ac6bcc1569a3506127342b499..ee88f2ac48e52571b7c62b4a6d306c0a9c12ac88 100644 (file)
@@ -14,7 +14,7 @@
 #include "output-def.hh"
 #include "system.hh"
 #include "font-interface.hh"
-
+#include "paper-score.hh"
 
 
 LY_DEFINE (ly_grob_property_data, "ly:grob-property-data",
@@ -254,7 +254,8 @@ LY_DEFINE (ly_grob_key, "ly:grob-key",
 {
   Grob *me = unsmob_grob (grob);
   SCM_ASSERT_TYPE (me, grob, SCM_ARG1, __FUNCTION__, "Grob");
-  return me->key ()->self_scm ();
+  
+  return me->key () ?  me->key ()->self_scm () : SCM_EOL;
 }
 
 LY_DEFINE (ly_grob_default_font, "ly:grob-default-font",
index 402f9dfc87499f033c466f92005d4812cb2aa4ca..cb3f90467cd4b2e8c75676897b713f9f7f2549fe 100644 (file)
@@ -15,7 +15,6 @@
 #include "warn.hh"
 #include "pointer-group-interface.hh"
 #include "misc.hh"
-#include "paper-score.hh"
 #include "stencil.hh"
 #include "warn.hh"
 #include "system.hh"
 #include "misc.hh"
 #include "music.hh"
 #include "item.hh"
-#include "paper-score.hh"
 #include "ly-smobs.icc"
 #include "output-def.hh"
 
-
-
-
-
 Grob *
 Grob::clone (int count) const
 {
index 363833a4c67d2da236e93e9c8e0d385e8d8dffc5..36ffd924a8eb7cc6c0ea0673aaec924c48a9ee14 100644 (file)
@@ -50,6 +50,8 @@ protected:
 
 public:
   Object_key const *key () const { return key_; }
+
+  Object_key const *create_grob_key (String);
   Object_key const *get_grob_key (String);
   Object_key const *get_context_key (String, String);
 
index da0f30e1f67d23b887a7aaa17b4f64715b9b53e5..5693b42059e6478c88c72227c9e23662cc954824 100644 (file)
@@ -72,6 +72,7 @@ class Keyword_table;
 class Ligature_bracket_engraver;
 class Ligature_engraver;
 class Lily_lexer;
+class Lily_parser;
 class Lilypond_context_key;
 class Lilypond_grob_key;
 class Line_group_engraver_group;
index 8cd5803d30b2114f622376454248d86a32b22c3c..f61862599baab3e6626389b12ad3d95b46d31d51 100644 (file)
@@ -27,8 +27,8 @@ protected:
   virtual void derived_mark () const;
   virtual int get_type () const;
   virtual int do_compare (Object_key const *other) const;
-  virtual SCM as_scheme () const;
 public:
+  virtual SCM as_scheme () const;
   static Object_key *from_scheme (SCM);
   static Object_key *undump (SCM);
   int compare (Object_key const *other) const;
index b0b4c713036d73e4ece5ff6694fc1aed1412dbf7..bf9d23f934f35c57c1beef3f8922b999e8b41228 100644 (file)
  */
 class Output_def   
 {
+
 public:
   VIRTUAL_COPY_CONSTRUCTOR (Output_def, Output_def);
   DECLARE_SMOBS (Output_def, );
 public:
   SCM scope_;
-  Output_def * parent_;
+  Output_def *parent_;
+  
   Input input_origin_;
   String user_key_;
 
+  Lily_parser *parser_;
+  Lily_parser *get_parser () const;
+  
   Output_def (Output_def const&);
   Output_def ();
-  
+
   /*
     variables.
    */
index a117bb74e7f5a2b5738086824a6d87bbcbacdb4d..f12d214de25b07d146d0df22f67cf7e39bc7faf3 100644 (file)
@@ -19,10 +19,9 @@ class Paper_score : public Music_output
   System *system_;
   SCM systems_;
   SCM paper_systems_;
-
 public:
   Paper_score (Output_def *);
-
+  
   DECLARE_CLASSNAME(Paper_score);
 
   Output_def *layout () const;
index 4af2d552e91d3a8dbf18eb9e0381ba0d4eac8991..2e1724a35d695ebe553d96471b24b1bd9da505f6 100644 (file)
@@ -24,15 +24,17 @@ class Score : public Input
   SCM music_;
 
 public:
-  String user_key_;
   Link_array<Output_def> defs_;
+  String user_key_;
   SCM header_;
   bool error_found_;
 
   Score ();
   Score (Score const &);
 
+  
   SCM get_music () const;
+  void add_output_def (Output_def *def);
   void set_music (SCM music);
   SCM book_rendering (Output_def *, Output_def *, Object_key *);
 };
index ce6f69fee6783dd5b49e997980cf8fb3aac7034e..35a0ca27132c50e2a7e17093a4c2bc6563ec9378 100644 (file)
@@ -26,6 +26,7 @@ class System : public Spanner
   Paper_score *pscore_;        // ugh.
   
 public:
+  Paper_score *paper_score () const;
   int get_rank () const;
   void post_processing ();
   SCM get_paper_system ();
index e9d533e91e62b4d4b8bd257e57b5df67ee5d5fc3..6d615ea915c5e8db9444cc545e94a488926ee439 100644 (file)
@@ -227,3 +227,4 @@ LY_DEFINE (ly_parser_output_name, "ly:parser-output-name",
   return scm_makfrom0str (p->output_basename_.c_str ());
 }
 
+
index 5e4aede18c6ad24ac151f31cf045d4b7b1fd9c74..7ede1f2e7abe21409805047c3897c81f8980506a 100644 (file)
@@ -194,7 +194,8 @@ get_layout (Lily_parser *parser)
   Output_def *layout = unsmob_output_def (id);
   layout = layout ? layout->clone () : new Output_def;
   layout->set_variable (ly_symbol2scm ("is-layout"), SCM_BOOL_T);
-
+  layout->parser_ = parser;
+    
   return layout;
 }
 
@@ -205,6 +206,7 @@ get_midi (Lily_parser *parser)
   Output_def *layout = unsmob_output_def (id);
   layout = layout ? layout->clone () : new Output_def;
   layout->set_variable (ly_symbol2scm ("is-midi"), SCM_BOOL_T);
+  layout->parser_ = parser;
   return layout;
 }
 
@@ -216,6 +218,7 @@ get_paper (Lily_parser *parser)
 
   layout = layout ? dynamic_cast<Output_def *> (layout->clone ()) : new Output_def;
   layout->set_variable (ly_symbol2scm ("is-paper"), SCM_BOOL_T);
+  layout->parser_ = parser;
   return layout;
 }
 
index d9833307afe1679caed24e835661f766e7c49f1d..ecdb9f4b4c78764732926a7a91b5a412cb053295 100644 (file)
@@ -22,7 +22,8 @@ Lilypond_grob_key::Lilypond_grob_key (Object_key const *context,
 void
 Lilypond_grob_key::derived_mark () const
 {
-  scm_gc_mark (context_->self_scm ());
+  if (context_)
+    scm_gc_mark (context_->self_scm ());
 }
 
 // todo: reverse order of comparison for efficiency reasons.
index 8b51037e4499dac2fc562fa67b6e2146ef4f4268..204097f4b4364838b89cdfe13bd4c970ebf98b89 100644 (file)
@@ -57,11 +57,9 @@ Object_key_dumper::serialize_key (Object_key const *key)
       if (Object_key const *sub_key = unsmob_key (scm_car (s)))
        scm_set_car_x (s, dump_key (sub_key));
       else if (Moment *mom = unsmob_moment (scm_car (s)))
-       {
-         scm_set_car_x (s,
-                        scm_list_2 (ly_symbol2scm ("unquote"),
-                                    mom->as_scheme ()));
-       }
+       scm_set_car_x (s,
+                      scm_list_2 (ly_symbol2scm ("unquote"),
+                                  mom->as_scheme ()));
     }
 
   file_contents_ = scm_cons (scm_list_3 (ly_symbol2scm ("define-key"),
index 4334e4f44b57d52e2224220f6042dd7a4668617d..50e42027efd8ddea4048c23b5c1c113ef9885a7d 100644 (file)
@@ -155,7 +155,9 @@ Copied_key::derived_mark () const
 SCM
 Copied_key::as_scheme () const
 {
-  return scm_list_2 (original_ ? original_->self_scm () : SCM_BOOL_F, scm_from_int (copy_count_));
+  return scm_list_2 (original_
+                    ? original_->self_scm ()
+                    : SCM_BOOL_F, scm_from_int (copy_count_));
 }
 
 Object_key *
@@ -164,3 +166,4 @@ Copied_key::from_scheme (SCM a)
   return new Copied_key (unsmob_key (scm_car (a)),
                         scm_to_int (scm_list_ref (a, scm_from_int (1))));
 }
+
index fbd32e9230d6b759ab8f7d50205f3926187cf4be..b0ead005982b7d9b5a23bc925d0d416f74482b89 100644 (file)
@@ -12,6 +12,7 @@
 #include "output-def.hh"
 #include "ly-module.hh"
 #include "context-def.hh"
+#include "lily-parser.hh"
 
 LY_DEFINE (ly_layout_lookup, "ly:output-def-lookup",
           2, 1, 0, (SCM pap, SCM sym, SCM def),
@@ -70,7 +71,6 @@ LY_DEFINE (ly_output_description, "ly:output-description",
   Output_def *id = unsmob_output_def (output_def);
 
   SCM al = ly_module2alist (id->scope_);
-
   SCM ell = SCM_EOL;
   for (SCM s = al; scm_is_pair (s); s = scm_cdr (s))
     {
@@ -98,6 +98,21 @@ LY_DEFINE (ly_paper_outputscale, "ly:paper-outputscale",
   return scm_from_double (output_scale (b));
 }
 
+/*
+  Cannot put in scope, but need a separate function, since we don't
+  want to allow this in --safe.
+ */
+LY_DEFINE (ly_output_def_parser, "ly:output-def-parser",
+          1, 0, 0, (SCM odef),
+          "Return the parser where @var{odef} is coming from.")
+{
+  Output_def *b = unsmob_output_def (odef);
+  SCM_ASSERT_TYPE (b, odef, SCM_ARG1, __FUNCTION__, "paper");
+
+  return b->get_parser()->self_scm ();
+}
+
+
 LY_DEFINE (ly_make_output_def, "ly:make-output-def",
           0, 0, 0, (),
           "Make a output def.")
index bb40a4d72c9770f4158792fb0f8f36e3a92b75f4..eda08dd7b4a05d3b3709012756a51cc0d524e053 100644 (file)
 Output_def::Output_def ()
 {
   scope_ = SCM_EOL;
+  parser_ = 0;
   parent_ = 0;
-  smobify_self ();
 
+  smobify_self ();
+  
   scope_ = ly_make_anonymous_module (false);
 }
 
@@ -36,6 +38,7 @@ Output_def::Output_def (Output_def const &s)
 {
   scope_ = SCM_EOL;
   parent_ = 0;
+  parser_ = s.parser_;
   smobify_self ();
 
   input_origin_ = s.input_origin_;
@@ -51,6 +54,12 @@ Output_def::~Output_def ()
 IMPLEMENT_SMOBS (Output_def);
 IMPLEMENT_DEFAULT_EQUAL_P (Output_def);
 
+Lily_parser *
+Output_def::get_parser () const
+{
+  return parent_ ? parent_->get_parser () : parser_;
+}
+
 SCM
 Output_def::mark_smob (SCM m)
 {
index 7a39af91d57e141b4359de8a6911d647c764616d..bbefe954f99e75265dfed2e2c5236f5b25de4c19 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <cmath>
 #include <ctime>
+
 using namespace std;
 
 #include "dimensions.hh"
index c34e80c50287afcd3071e159823f8d5256ef5db6..9e932349091c41b1ae6de063356e25b20a485991 100644 (file)
@@ -7,7 +7,7 @@
 */
 
 #include "paper-score.hh"
-
+#include "book.hh"
 #include "all-font-metrics.hh"
 #include "gourlay-breaking.hh"
 #include "main.hh"
index efd69b91501d9885690fb04df14f16013f73411b..dcba6806ce1d56c40aefdd32240ac12fd8507a39 100644 (file)
@@ -703,7 +703,7 @@ score_body:
                }
                else
                {
-                       $$->defs_.push ($2);
+                       $$->add_output_def ($2);
                }
                $2->unprotect ();
        }
index e45a99676c1b063514d7e281fe3624ec62da5b71..94d269df9f2a8819531ba66314555f94bc7e9444 100644 (file)
@@ -78,6 +78,7 @@ Score_engraver::initialize ()
 
   Object_key const *sys_key = context ()->get_grob_key ("System");
   pscore_->typeset_system (new System (props, sys_key));
+  
   system_ = pscore_->root_system ();
   context ()->set_property ("rootSystem", system_->self_scm ());
 
index ff5c153cd6b09d4d31f0297f0d3b38cbc8cd2242..505a1fee5e763e61b9de6c2ad1a4d7e652395fa2 100644 (file)
@@ -9,6 +9,7 @@
 #include "score.hh"
 
 #include <cstdio>
+
 using namespace std;
 
 #include "book.hh"
@@ -22,8 +23,8 @@ using namespace std;
 #include "paper-book.hh"
 #include "paper-score.hh"
 #include "warn.hh"
-
 #include "music.hh"
+
 #include "ly-smobs.icc"
 
 Score::Score ()
@@ -119,7 +120,7 @@ default_rendering (SCM music, SCM outdef,
     }
 
   SCM context = ly_run_translator (music, scaled_def, key);
-
+  
   SCM output_as_scm = ly_format_output (context);
   Music_output *output = unsmob_music_output (output_as_scm);
 
@@ -231,3 +232,9 @@ Score::get_music () const
 {
   return music_;
 }
+
+void
+Score::add_output_def (Output_def *def)
+{
+  defs_.push (def);
+}
index 07d156a65bd92ad74568f1c012e792c5ae7d04a2..147d85c8636567805fa8198c3b6e45c93393ebdc 100644 (file)
@@ -374,8 +374,6 @@ System::get_paper_system ()
                       scm_cons (ly_symbol2scm ("combine-stencil"),
                                 exprs));
 
-
-
   Grob *left_bound = this->get_bound (LEFT);
   SCM prop_init = left_bound->get_property ("line-break-system-details");
   Prob *pl = make_paper_system (prop_init);
@@ -455,6 +453,12 @@ System::columns () const
   return columns;
 }
 
+Paper_score*
+System::paper_score () const
+{
+  return pscore_;
+}
+
 int
 System::get_rank () const
 {
@@ -472,6 +476,8 @@ get_root_system (Grob *me)
   return dynamic_cast<System*> (system_grob); 
 }
 
+
+
 ADD_INTERFACE (System, "system-interface",
               "This is the toplevel object: each object in a score "
               "ultimately has a System object as its X and Y parent. ",
index 711532620714297c5b7b30a6ca302a2254c5b719..6ec77e7ad4676a12d1aaeb33105119d5673e05f5 100644 (file)
     (postprocess-output book framework-ps-module
                        (format "~a.preview.eps" basename)
                        (cons "png" (ly:output-formats)))))
+
 (if #f
     (define-public (output-preview-framework basename book scopes fields)
 
index 96b1265d4a2348e39c1faa12555a5cf285369317..812e4bc044ba686d4eace959322fafe80e2f7b92 100644 (file)
             (scm page)
             )
 
+
 (define (write-page-breaks pages) 
   "Dump page breaks"
 
-  
-  (define tweaks '())
+  (define tweaks (make-hash-table 23))
+
+  (define (record what property-pairs)
+    (let*
+       ((key (ly:output-def-lookup (ly:grob-layout what)
+                                   'tweak-key
+                                   "tweaks"
+                                   ))
+        (when (ly:grob-property what 'when))
+        )
+
+      (if (not (hash-ref tweaks key))
+         (hash-set! tweaks key '()))
+
+      (hash-set! tweaks key
+                (acons when property-pairs
+                       (hash-ref tweaks key)))
+      
+      ))
 
-  (define (record when property-pairs)
-    (set! tweaks
-         (acons when property-pairs
-                tweaks)))
   (define (graceless-moment mom)
     (ly:make-moment
      (ly:moment-main-numerator mom)
      (ly:moment-main-denominator mom)
      0 0))
-     
+
   (define (moment->skip mom)
     (let*
        ((main (if (> (ly:moment-main-numerator mom) 0)
          (format out-port "~a\n~a\n" skip base)
          (dump-tweaks out-port (cdr tweak-list) (graceless-moment now))
        )))
-  
+
+  (define (dump-all-tweaks)
+    (let*
+     ((paper (ly:paper-book-paper (page-property  (car pages) 'paper-book)))
+      (parser (ly:output-def-parser paper))
+      (name  (format "~a-page-layout.ly"
+                    (ly:parser-output-name parser)))
+      (out-port (open-output-file name)))
+      
+     (ly:progress "Writing page layout to ~a" name)
+     (hash-for-each
+      (lambda (key val)
+       (format out-port "~a = {" key)
+       (dump-tweaks out-port (reverse val) (ly:make-moment 0 1))
+        (display "}" out-port))
+       tweaks)
+     ))
+
   (define (handle-page page)
     (define index 0)
     (define (handle-system sys)
            (set! props (cons '(page-break . #t)
                              props)))
        (if (not (ly:prob-property? sys 'is-title))
-           (record (ly:grob-property (ly:spanner-bound (ly:prob-property sys 'system-grob) LEFT) 'when)
-                 props))
+           (record  (ly:spanner-bound (ly:prob-property sys 'system-grob) LEFT)
+                    props))
 
        (set! index (1+ index))
        ))
   
   
   (for-each handle-page pages)
-
-  (let*
-      ((out-port (open-output-file "breaks.ly")))
-
-    (display "{" out-port)
-    (dump-tweaks out-port (reverse tweaks) (ly:make-moment 0 1))
-    (display "}" out-port)
-  ))
+  (dump-all-tweaks))
 
 
 
 (define (post-process-pages layout pages)
-  (if (ly:get-option 'write-page-layout)
+  (if (ly:output-def-lookup layout 'write-page-layout)
       (write-page-breaks pages)))
 
 
index 7ef7c147d269798f5b4a45b3e6043aaa4cb19692..2689bbcb85fbeae0c508635079ae58715c3841be 100644 (file)
@@ -34,10 +34,9 @@ similar to chord syntax")
              (verbose ,(ly:command-line-verbose?) "value for the --verbose flag")
              (ttf-verbosity 0
                           "how much verbosity for TTF font embedding?")
-             (write-page-layout #f
-                                "dump page layout settings.") 
              (debug-gc #f
-                       "dump GC protection info"))))
+                       "dump GC protection info"))
+           ))
 
 ;; FIXME: stray statement
 (define-scheme-options)
@@ -88,9 +87,6 @@ similar to chord syntax")
 
 
 
-;; cpp hack to get useful error message
-(define ifdef "First run this through cpp.")
-(define ifndef "First run this through cpp.")
 
 ;; gettext wrapper for guile < 1.7.2
 (if (defined? 'gettext)