X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdocument-backend.scm;h=80ba17a3ba34cd1958f80fa6b72bae234613c008;hb=476c0adbf748f1adcb6927a6197d13f3790c8a9b;hp=a4c25cfe3cbcda60717f0c4fa1e311f89f8d9d9f;hpb=bd751630011a6fbfcf069ec1fc41a8eaed8a6b87;p=lilypond.git diff --git a/scm/document-backend.scm b/scm/document-backend.scm index a4c25cfe3c..80ba17a3ba 100644 --- a/scm/document-backend.scm +++ b/scm/document-backend.scm @@ -1,6 +1,6 @@ ;;;; This file is part of LilyPond, the GNU music typesetter. ;;;; -;;;; Copyright (C) 2000--2012 Han-Wen Nienhuys +;;;; Copyright (C) 2000--2014 Han-Wen Nienhuys ;;;; Jan Nieuwenhuizen ;;;; ;;;; LilyPond is free software: you can redistribute it and/or modify @@ -24,7 +24,7 @@ ;; properly sort all grobs, properties, and interfaces ;; within the all-grob-descriptions alist -(map +(for-each (lambda (x) (let* ((props (assoc-ref all-grob-descriptions (car x))) (meta (assoc-ref props 'meta)) @@ -70,17 +70,17 @@ (define iface->grob-table (make-hash-table 61)) ;; extract ifaces, and put grob into the hash table. -(map +(for-each (lambda (x) (let* ((meta (assoc-get 'meta (cdr x))) (ifaces (assoc-get 'interfaces meta))) - (map (lambda (iface) - (hashq-set! - iface->grob-table iface - (cons (car x) - (hashq-ref iface->grob-table iface '())))) - ifaces))) + (for-each (lambda (iface) + (hashq-set! + iface->grob-table iface + (cons (car x) + (hashq-ref iface->grob-table iface '())))) + ifaces))) all-grob-descriptions) ;; First level Interface description @@ -178,17 +178,17 @@ node." ;;;;;;;;;; check for dangling backend properties. (define (mark-interface-properties entry) - (map (lambda (x) (set-object-property! x 'iface-marked #t)) - (caddr (cdr entry)))) + (for-each (lambda (x) (set-object-property! x 'iface-marked #t)) + (caddr (cdr entry)))) -(map mark-interface-properties interface-description-alist) +(for-each mark-interface-properties interface-description-alist) (define (check-dangling-properties prop) (if (not (object-property prop 'iface-marked)) (ly:error (string-append "define-grob-properties.scm: " (_ "cannot find interface for property: ~S")) prop))) -(map check-dangling-properties all-backend-properties) +(for-each check-dangling-properties all-backend-properties) ;;;;;;;;;;;;;;;;