[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Scheme get-option example in the docs...
From: |
Reinhold Kainhofer |
Subject: |
Scheme get-option example in the docs... |
Date: |
Wed, 13 Feb 2008 16:13:09 +0100 |
User-agent: |
KMail/1.9.7 |
The scheme example for ly:get-option in section 7.1.6 in the documentation
(http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Functions-without-arguments)
has a small typo. In particular, it says
(if (eq? #t (ly:get-option display-bar-numbers))
while in fact it should be
(if (eq? #t (ly:get-option 'display-bar-numbers))
(Notice the ' in front of display-bar-numbers!)
After that change, the example works.
However, on the command line I get the spurious warning
warning: no such internal option: display-bar-numbers
This is of course correct, since display-bar-numbers is not an internal
option, but one defined/used by the .ly file itself. The warning also stays
if I use ly:add-option to declare that option. Is this intentional? If so, I
would change the warning to:
warning: No such internal option: display-bar-numbers. However, your lilypond
might define and use it.
Cheers,
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
* Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
* K Desktop Environment, http://www.kde.org, KOrganizer maintainer
* Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
- Scheme get-option example in the docs...,
Reinhold Kainhofer <=