[Top][All Lists]

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

Re: What is the proper way of printing the current date? Also bug report

From: Han-Wen Nienhuys
Subject: Re: What is the proper way of printing the current date? Also bug report
Date: Thu, 28 Jul 2005 14:38:54 +0200
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720)

Sven Axelsson wrote:
I have been using

#(use-modules (srfi srfi-19))
today = #(date->string (current-date) "~B ~d, ~Y")

to get the current date so I can include that in the tagline of my music.

This does cause the message
WARNING: #f: imported module (srfi srfi-19) overrides core binding
in the log, but it didn't seem to cause any problems.

This usually works great, but on one particular tune that uses many

\once \override Beam #'positions = #'(-2.5 . -3.0)

this would cause Lilypond to fail with the message
ERROR: Wrong type (expecting pair): ()

It was almost driving me crazy, since I thought the error came from the
overrides themselves, using pairs and all. The really strange thing is
that using a single beam override caused no error, using a few printed
the error but still generated correct output, and using even more would
cause Lilypond to generate no output at all.

Obviously this is caused by some strange Guile interactions that I don't
understand. However, shouldn't there be a standard way of getting a
formatted date in Lilypond? Or maybe there is, and I just haven't found it yet.

Quaint. Can you send a full bugreport?

 Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

reply via email to

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