diff options
author | Andy Wingo <wingo@pobox.com> | 2011-11-23 12:40:33 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-11-23 12:54:09 +0100 |
commit | 9447207f0c9a52d48b2de20b444405dfdd43d465 (patch) | |
tree | 162696fc2bffb4991ef4139b89cd1d90c12bf38d /module/texinfo | |
parent | c81c2ad3a59fdfb54260af2c159fac56de4daf3a (diff) | |
download | guile-9447207f0c9a52d48b2de20b444405dfdd43d465.tar.gz |
Use default value for make-fluid in Scheme files
* module/ice-9/boot-9.scm (%exception-handler)
(%running-exception-handlers, read-eval?, *repl-stack*)
(make-mutable-parameter):
* module/ice-9/getopt-long.scm (%program-name):
* module/language/elisp/runtime.scm (built-in-macro, defspecial):
* module/srfi/srfi-39.scm (make-parameter/helper):
* module/system/base/language.scm (*current-language*):
* module/system/base/message.scm (*current-warning-port*):
(*current-warning-prefix*):
* module/system/base/target.scm (%target-type, %target-endianness)
(%target-word-size):
* module/texinfo/plain-text.scm (*indent*, *itemizer*):
* benchmark-suite/lib.scm (prefix-fluid):
* test-suite/lib.scm (prefix-fluid): Give fluids a useful default
value.
Diffstat (limited to 'module/texinfo')
-rw-r--r-- | module/texinfo/plain-text.scm | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/module/texinfo/plain-text.scm b/module/texinfo/plain-text.scm index 93a7c1d99..87e43e5bb 100644 --- a/module/texinfo/plain-text.scm +++ b/module/texinfo/plain-text.scm @@ -1,6 +1,6 @@ ;;;; (texinfo plain-text) -- rendering stexinfo as plain text ;;;; -;;;; Copyright (C) 2009, 2010 Free Software Foundation, Inc. +;;;; Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. ;;;; Copyright (C) 2003,2004,2009 Andy Wingo <wingo at pobox dot com> ;;;; ;;;; This library is free software; you can redistribute it and/or @@ -41,9 +41,6 @@ (or (arg-ref key %-args) (error "Missing argument:" key %-args))) -(define *indent* (make-fluid)) -(define *itemizer* (make-fluid)) - (define (make-ticker str) (lambda () str)) (define (make-enumerator n) @@ -52,9 +49,8 @@ (set! n (1+ n)) (format #f "~A. " last)))) -(fluid-set! *indent* "") -;; Shouldn't be necessary to do this, but just in case. -(fluid-set! *itemizer* (make-ticker "* ")) +(define *indent* (make-fluid "")) +(define *itemizer* (make-fluid (make-ticker "* "))) (define-macro (with-indent n . body) `(with-fluids ((*indent* (string-append (fluid-ref *indent*) |