Re: Implement new handling for margin and line-width settings.

2009-08-12 Thread Dan Eble
On 12 Aug 2009, at 00:06, joenee...@gmail.com wrote: In case there is rounding, it is better to check if (abs (paper_width - line_width - left_margin - right_margin) 1e-6) Wouldn't it be a good idea to define a name for 1e-6? -- Dan ___

Re: Implement new handling for margin and line-width settings.

2009-08-12 Thread Joe Neeman
On Wed, 2009-08-12 at 09:14 -0400, Dan Eble wrote: On 12 Aug 2009, at 00:06, joenee...@gmail.com wrote: In case there is rounding, it is better to check if (abs (paper_width - line_width - left_margin - right_margin) 1e-6) Wouldn't it be a good idea to define a name for 1e-6?

Re: [PATCH] Implement new handling for margin and line-width settings.

2009-08-12 Thread Michael Käppler
Hi Carl, Usually we like to keep responses to reviews on the -devel list, so I've copied this there. Sorry, that wasn't intended. It was late yesterday and I didn't notice I pressed the wrong button... ;) Oh -- I misunderstood the meaning of the FIXME. I think I'd recommend changing the

Re: [PATCH] Implement new handling for margin and line-width settings.

2009-08-12 Thread David Kastrup
Carl Sorensen c_soren...@byu.edu writes: On 8/12/09 11:15 AM, Michael Käppler xmichae...@web.de wrote: Sorry, that wasn't intended. It was late yesterday and I didn't notice I pressed the wrong button... ;) Glad I'm not the only one who does this. Uh oh. Did you manage to placate her

Re: [PATCH] Implement new handling for margin and line-width settings.

2009-08-11 Thread Carl Sorensen
Thanks for the reply Michael. Usually we like to keep responses to reviews on the -devel list, so I've copied this there. On 8/11/09 5:51 PM, Michael Käppler xmichae...@web.de wrote: Hi Carl, thanks for your review: Don't use lmargin, rmargin, and lwidth as variable names. LilyPond

Implement new handling for margin and line-width settings.

2009-08-11 Thread joeneeman
Could you add some regression tests (doesn't have to be in this commit) that demonstrate some of the possible combinations of margin settings? There should also be some tests that demonstrate the warnings. http://codereview.appspot.com/104085/diff/1/4 File lily/output-def.cc (right):