;;; -*-Scheme-*-
;;;
-;;; $Id: debuge.scm,v 1.50 1993/01/10 10:43:16 cph Exp $
+;;; $Id: debuge.scm,v 1.51 1995/09/13 03:57:22 cph Exp $
;;;
-;;; Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology
+;;; Copyright (c) 1986, 1989-95 Massachusetts Institute of Technology
;;;
;;; This material was developed by the Scheme project at the
;;; Massachusetts Institute of Technology, Department of
(write-string "'")
(let ((region (buffer-unclipped-region buffer)))
(group-write-to-file
- (and *translate-file-data-on-output?*
+ (and (ref-variable translate-file-data-on-output
+ (region-group region))
(pathname-newline-translation pathname))
(region-group region)
(region-start-index region)
;;; -*-Scheme-*-
;;;
-;;; $Id: fileio.scm,v 1.127 1995/05/02 20:49:06 cph Exp $
+;;; $Id: fileio.scm,v 1.128 1995/09/13 03:57:14 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-95 Massachusetts Institute of Technology
;;;
(os/read-file-methods)
list?)
-(define *translate-file-data-on-input?* #t)
+(define-variable translate-file-data-on-input
+ "If true (the default), end-of-line translation is done on file input."
+ #t
+ boolean?)
(define (%insert-file mark truename visit?)
(let ((do-it
(let ((channel (file-open-input-channel filename)))
(let ((length (channel-file-length channel))
(buffer
- (and *translate-file-data-on-input?*
+ (and (ref-variable translate-file-data-on-input group)
(let ((translation (pathname-newline-translation truename)))
(and translation
(make-input-buffer channel 4096 translation))))))
false
boolean?)
-(define *translate-file-data-on-output?* #t)
+(define-variable translate-file-data-on-output
+ "If true (the default), end-of-line translation is done on file output."
+ #t
+ boolean?)
\f
(define (write-buffer-interactive buffer backup-mode)
(let ((pathname (buffer-pathname buffer)))
(define (write-region* region pathname message? append?)
(let ((translation
- (and *translate-file-data-on-output?*
+ (and (ref-variable translate-file-data-on-output
+ (region-group region))
(pathname-newline-translation pathname)))
(filename (->namestring pathname))
(group (region-group region))