On Thu, Jan 1, 2009 at 2:39 PM, Nicolas Sceaux <[email protected]> wrote:
>>> Huh, the only definition of _i that I find in the sources is >>> (defmacro-public _i (x) x) >>> What is the point of that? Shouldn't it expand into the result of a call >>> to gettext? >> >> The string needs to be marked so it can be extracted form the source >> code by other tools. > > oops ok. > > The following is an ugly hack, but seems to do the job: > > (defmacro-public define-music-function (args signature . body) > (if (and (pair? body) (pair? (car body)) (eqv? '_i (caar body))) > (let ((docstring (gettext (cadar body))) > (body (cdr body))) looks good to me. I am not really sure if we need the gettext call, though - since we need them for dumping documentation, it will be just as easy to do gettext when writing .texi. -- Han-Wen Nienhuys - [email protected] - http://www.xs4all.nl/~hanwen _______________________________________________ lilypond-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/lilypond-devel
