]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/documentation-lib.scm
* VERSION (MY_PATCH_LEVEL): make 1.7.0
[lilypond.git] / scm / documentation-lib.scm
index 0ea2a979463dd7b73ef18d25581aa06522440e73..626f2fc250ce7350f237f2eeec4609accb42ce36 100644 (file)
   (string-append "@code{" (texify (scm->string x)) "}")
   )
 
+
+;;
+;; don't confuse users with #<procedure .. > syntax. 
+;; 
 (define (scm->string val)
-  (string-append
-   (if (self-evaluating? val) "" "'")
-   (call-with-output-string (lambda (port) (display val port)))
-  ))
+  (if (and (procedure? val) (symbol? (procedure-name val)))
+      (symbol->string (procedure-name val))
+      (string-append
+       (if (self-evaluating? val) "" "'")
+       (call-with-output-string (lambda (port) (display val port)))
+       )))
 
 (define (node name)
   (string-append
@@ -119,9 +125,6 @@ Add a ref if REF is set
    (texi-menu items-alist)))
 
 
-(define (pad-string-to str wid)
-  (string-append str (make-string (max (- wid (string-length str)) 0) #\ ))
-  )
 
 (define (texi-file-head name file-name top items-alist)