From b59e35e8bfcc667ac1e2fac4772127eba0c7bed3 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 25 May 2009 12:52:30 +0200 Subject: Fix more confusion around `unspecified?'. * src/guile/skribilo/engine.scm (engine-custom-add!): Compare OLD against `unspecified' instead of using `unspecified?'. * src/guile/skribilo/writer.scm (markup-writer-get): Likewise. (copy-markup-writer): Initialize keys to the "real" unspecified value, allowing the use of `unspecified?'. --- src/guile/skribilo/engine.scm | 2 +- src/guile/skribilo/writer.scm | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/guile/skribilo/engine.scm b/src/guile/skribilo/engine.scm index c52f48b..51da726 100644 --- a/src/guile/skribilo/engine.scm +++ b/src/guile/skribilo/engine.scm @@ -344,7 +344,7 @@ otherwise the requested engine is returned." (define (engine-custom-add! e id val) (let ((old (engine-custom e id))) - (if (unspecified? old) + (if (eq? old 'unspecified) (engine-custom-set! e id (list val)) (engine-custom-set! e id (cons val old))))) diff --git a/src/guile/skribilo/writer.scm b/src/guile/skribilo/writer.scm index a57acc5..d105a05 100644 --- a/src/guile/skribilo/writer.scm +++ b/src/guile/skribilo/writer.scm @@ -278,7 +278,7 @@ (define (matching-writer writers) (find (lambda (w) (and (if class (equal? (writer-class w) class) #t) - (or (unspecified? pred) + (or (eq? pred 'unspecified) (eq? (slot-ref w 'upred) pred)))) writers)) @@ -334,13 +334,13 @@ (define* (copy-markup-writer markup old-engine ;; #:optional new-engine - :key (predicate 'unspecified) - (class 'unspecified) - (options 'unspecified) - (validate 'unspecified) - (before 'unspecified) - (action 'unspecified) - (after 'unspecified) + :key (predicate *unspecified*) + (class *unspecified*) + (options *unspecified*) + (validate *unspecified*) + (before *unspecified*) + (action *unspecified*) + (after *unspecified*) :rest args) (define new-engine ;; XXX: Work around `lambda*' suckingness (see `markup-writer'). -- cgit v1.2.3