From d1dc065ae5ee7804e31eeb9141ad53cd3e0cbee5 Mon Sep 17 00:00:00 2001
From: Han-Wen Nienhuys <hanwen@xs4all.nl>
Date: Sun, 6 Jun 2004 22:12:16 +0000
Subject: [PATCH] set optimal-page-breaks as default

---
 ChangeLog                 | 4 ++++
 lily/page.cc              | 5 +++++
 lily/paper-line.cc        | 2 --
 ly/book-paper-defaults.ly | 4 ++--
 4 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 53ff4ebc79..3ebbab8f16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-06-07  Han-Wen Nienhuys   <hanwen@xs4all.nl>
+
+	* ly/book-paper-defaults.ly: set optimal-page-breaks as default
+
 2004-06-06  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
 	* ly/engraver-init.ly (AncientRemoveEmptyStaffContext): remove
diff --git a/lily/page.cc b/lily/page.cc
index b84131a677..b40d805654 100644
--- a/lily/page.cc
+++ b/lily/page.cc
@@ -202,6 +202,11 @@ Page::text_height () const
   return h;
 }
 
+
+/*
+  TODO: unused?
+  
+ */
 LY_DEFINE (ly_page_paper_lines, "ly:page-paper-lines",
 	   1, 0, 0, (SCM page),
 	   "Return paper-lines from @var{page}.")
diff --git a/lily/paper-line.cc b/lily/paper-line.cc
index eda36f62eb..21c51439c1 100644
--- a/lily/paper-line.cc
+++ b/lily/paper-line.cc
@@ -18,8 +18,6 @@ IMPLEMENT_TYPE_P (Paper_line, "ly:paper-line?");
 IMPLEMENT_DEFAULT_EQUAL_P (Paper_line);
 
 
-#define TITLE_PENALTY -1
-
 
 Paper_line::Paper_line (Stencil s, int penalty, bool is_title)
 {
diff --git a/ly/book-paper-defaults.ly b/ly/book-paper-defaults.ly
index b4e81fcae3..561231be41 100644
--- a/ly/book-paper-defaults.ly
+++ b/ly/book-paper-defaults.ly
@@ -36,8 +36,8 @@
 	(baseline-skip . 2)
 	(word-space . 0.6)))
 
-    #(define page-breaking ly:ragged-page-breaks)
-    %%#(define page-breaking ly:optimal-page-breaks)
+    % #(define page-breaking ly:ragged-page-breaks)
+    #(define page-breaking ly:optimal-page-breaks)
 
     #(define page-to-stencil ly:page-header-lines-footer-stencil)
 
-- 
2.39.5