X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdocumentation-lib.scm;h=685dc500d32354a34db708a03761af48b8c022b8;hb=90e4d7057f3857da049dfda3d130017d4719bd6b;hp=da7d29665855095e98d75ac2704848c7d9377de2;hpb=04e6f1425482517da29ea708e2cbbb35729d5909;p=lilypond.git diff --git a/scm/documentation-lib.scm b/scm/documentation-lib.scm index da7d296658..685dc500d3 100644 --- a/scm/documentation-lib.scm +++ b/scm/documentation-lib.scm @@ -1,6 +1,6 @@ ;;;; This file is part of LilyPond, the GNU music typesetter. ;;;; -;;;; Copyright (C) 2000--2014 Han-Wen Nienhuys +;;;; Copyright (C) 2000--2015 Han-Wen Nienhuys ;;;; Jan Nieuwenhuizen ;;;; ;;;; LilyPond is free software: you can redistribute it and/or modify @@ -20,6 +20,9 @@ (srfi srfi-13) (srfi srfi-1)) +(if (guile-v2) + (use-modules (ice-9 curried-definitions))) + (define-class () (appendix #:init-value #f #:accessor appendix? #:init-keyword #:appendix) (children #:init-value '() #:accessor node-children #:init-keyword #:children) @@ -48,8 +51,7 @@ "\n\n" (if (pair? (node-children node)) (texi-menu - (map (lambda (x) (menu-entry x)) - (node-children node))) + (map menu-entry (node-children node))) "")) port) (for-each (lambda (x) (dump-node x port (+ 1 level))) @@ -141,7 +143,7 @@ string-to-use). If QUOTE? is #t, embed table in a @quotation environment." "\n* GNU " name ": (" file-name "). " name "." "\n@end direntry\n" "@documentlanguage en\n" - "@documentencoding utf-8\n")) + "@documentencoding UTF-8\n")) (define (context-name name) name)