((not no-error?) (error "Unknown option name:" name))
(else #f)))
- (define (notifier option)
- (named-lambda (notify port)
- (if (not (fluid load-option/suppress-loading-message?))
- (begin
- (write-string "Loading " port)
- (write-string (symbol-name option) port)
- (write-string " option" port)))))
-
(define (load-entry entry)
- (with-notification
- (notifier name)
- (lambda ()
- (let-fluid load/suppress-loading-message? #t
- (lambda ()
- (for-each (lambda (thunk) (thunk)) (cdr entry))))))
+ (let-fluid load/suppress-loading-message? #t
+ (lambda ()
+ (if load-option/suppress-loading-message?
+ (for-each (lambda (thunk) (thunk)) (cdr entry))
+ (with-notification
+ (named-lambda (load-optoin-notify port)
+ (write-string "Loading " port)
+ (write-string (symbol-name name) port)
+ (write-string " option" port))
+ (lambda ()
+ (for-each (lambda (thunk) (thunk)) (cdr entry)))))))
(set! loaded-options (cons name loaded-options))
name)