From: Chris Hanson Date: Wed, 12 Apr 1995 21:15:35 +0000 (+0000) Subject: Add switch to control special handling of abbreviations for QUOTE and X-Git-Tag: 20090517-FFI~6467 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=31c3626d484ff8bddabb0afb8e45f9d2c7373406;p=mit-scheme.git Add switch to control special handling of abbreviations for QUOTE and friends. Default this switch to OFF. --- diff --git a/v7/src/runtime/runtime.pkg b/v7/src/runtime/runtime.pkg index f7417f7ff..1c38973d6 100644 --- a/v7/src/runtime/runtime.pkg +++ b/v7/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: runtime.pkg,v 14.249 1995/03/03 23:40:44 cph Exp $ +$Id: runtime.pkg,v 14.250 1995/04/12 21:15:35 cph Exp $ Copyright (c) 1988-95 Massachusetts Institute of Technology @@ -2815,6 +2815,7 @@ MIT in each case. |# (files "unpars") (parent ()) (export () + *unparse-abbreviate-quotations?* *unparse-compound-procedure-names?* *unparse-disambiguate-null-as-itself?* *unparse-disambiguate-null-lambda-list?* diff --git a/v7/src/runtime/unpars.scm b/v7/src/runtime/unpars.scm index 9f4e5bffa..8ea171d80 100644 --- a/v7/src/runtime/unpars.scm +++ b/v7/src/runtime/unpars.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: unpars.scm,v 14.41 1995/03/04 00:37:55 cph Exp $ +$Id: unpars.scm,v 14.42 1995/04/12 21:14:45 cph Exp $ Copyright (c) 1988-95 Massachusetts Institute of Technology @@ -55,6 +55,7 @@ MIT in each case. |# (set! *unparse-disambiguate-null-lambda-list?* false) (set! *unparse-compound-procedure-names?* true) (set! *unparse-with-datum?* false) + (set! *unparse-abbreviate-quotations?* #f) (set! system-global-unparser-table (make-system-global-unparser-table)) (set! *default-list-depth* 0) (set-current-unparser-table! system-global-unparser-table)) @@ -70,6 +71,7 @@ MIT in each case. |# (define *unparse-disambiguate-null-lambda-list?*) (define *unparse-compound-procedure-names?*) (define *unparse-with-datum?*) +(define *unparse-abbreviate-quotations?*) (define system-global-unparser-table) (define *default-list-depth*) (define *current-unparser-table*) @@ -548,7 +550,8 @@ MIT in each case. |# (*unparse-object (cadr pair))) (define (unparse-list/prefix-pair? object) - (and (not (future? (car object))) + (and *unparse-abbreviate-quotations?* + (not (future? (car object))) (pair? (cdr object)) (null? (cddr object)) (case (car object) diff --git a/v8/src/runtime/runtime.pkg b/v8/src/runtime/runtime.pkg index f7417f7ff..1c38973d6 100644 --- a/v8/src/runtime/runtime.pkg +++ b/v8/src/runtime/runtime.pkg @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: runtime.pkg,v 14.249 1995/03/03 23:40:44 cph Exp $ +$Id: runtime.pkg,v 14.250 1995/04/12 21:15:35 cph Exp $ Copyright (c) 1988-95 Massachusetts Institute of Technology @@ -2815,6 +2815,7 @@ MIT in each case. |# (files "unpars") (parent ()) (export () + *unparse-abbreviate-quotations?* *unparse-compound-procedure-names?* *unparse-disambiguate-null-as-itself?* *unparse-disambiguate-null-lambda-list?*