bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue 2026 (markup utility) should keep empty-markup positionless


From: Robin Bannister
Subject: Issue 2026 (markup utility) should keep empty-markup positionless
Date: Wed, 1 Feb 2012 21:44:34 +0100

In http://code.google.com/p/lilypond/issues/detail?id=2026#c32 Ian Hulin wrote:
This is fixed if we move the definition of the \null markup to the before the empty-markup declaration and change empty-markup to
(define-public (empty-markup)
   make-null-markup))
...
It's built the docs successfully and run reg-tests OK.


OK, the docs say \null markup is an "empty markup", merely a single point, but it has _position_, which empty-markup does not. The following snippet demonstrates this difference: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
offset = \markup \translate #'(9 . 9) "offset"
\markup \line { "concat with empty-markup:" \box \concat { \empty-markup \offset } " concat with null markup: "\box \concat { \null \offset }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


Cheers, Robin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]