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