]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/documentation-lib.scm
Docs: CG: Use @verbatim environment for Vim code.
[lilypond.git] / scm / documentation-lib.scm
index 79da938b6b34e08443195f5548950d2e742800d4..a97f0c2f76f44b8362118afebc1ac1ceb443f696 100644 (file)
@@ -61,7 +61,7 @@
 
 (define (texi-section-command level)
   (assoc-get level '(
-                    ;; Hmm, texinfo doesn't have ``part''
+                    ;; Hmm, texinfo doesn't have ``part''
                     (0 . "@top")
                     (1 . "@chapter")
                     (2 . "@section")
@@ -71,7 +71,7 @@
 
 (define (texi-appendix-section-command level)
   (assoc-get level '((0 . "@top")
-                    (1 . "@appendix")
+                    (1 . "@appendix")
                     (2 . "@appendixsec")
                     (3 . "@appendixsubsec")
                     (4 . "@appendixsubsubsec")
@@ -182,7 +182,7 @@ with init values from ALIST (1st optional argument)
         (type (object-property sym type?-name))
         (typename (type-name type))
         (desc (object-property sym doc-name))
-        (handle (assoc sym alist)))
+        (init-value (assoc-get sym alist)))
 
     (if (eq? desc #f)
        (ly:error (_ "cannot find description for property ~S (~S)") sym where))
@@ -190,10 +190,10 @@ with init values from ALIST (1st optional argument)
     (cons
      (string-append "@code{" name "} "
                    "(" typename ")"
-                   (if handle
+                   (if init-value
                        (string-append
                         ":\n\n"
-                        (scm->texi (cdr handle))
+                        (scm->texi init-value)
                         "\n\n")
                        ""))
      desc)))