;;; -*-Scheme-*-
;;;
-;;; $Id: fileio.scm,v 1.134 1996/04/24 02:19:48 cph Exp $
+;;; $Id: fileio.scm,v 1.135 1996/04/24 02:30:01 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-96 Massachusetts Institute of Technology
;;;
(method truename mark visit?)
(let ((do-it
(lambda ()
- (group-insert-file! (mark-group mark)
- (mark-index mark)
- truename))))
+ (group-insert-file!
+ (mark-group mark)
+ (mark-index mark)
+ truename
+ (pathname-newline-translation truename)))))
(if (ref-variable read-file-message mark)
(let ((msg
(string-append "Reading file \""
value))
(do-it))))))
-(define (group-insert-file! group index truename)
+(define (group-insert-file! group index truename translation)
(let ((filename (->namestring truename)))
(let ((channel (file-open-input-channel filename)))
(let ((length (channel-file-length channel))
(buffer
- (and (ref-variable translate-file-data-on-input group)
- (let ((translation (pathname-newline-translation truename)))
- (and translation
- (make-input-buffer channel 4096 translation))))))
+ (and translation
+ (ref-variable translate-file-data-on-input group)
+ (make-input-buffer channel 4096 translation))))
(bind-condition-handler (list condition-type:allocation-failure)
(lambda (condition)
condition
;;; -*-Scheme-*-
;;;
-;;; $Id: os2.scm,v 1.27 1995/12/19 18:18:51 cph Exp $
+;;; $Id: os2.scm,v 1.28 1996/04/24 02:30:14 cph Exp $
;;;
;;; Copyright (c) 1994-95 Massachusetts Institute of Technology
;;;
(list pathname mark)))
(group-insert-file! (mark-group mark)
(mark-index mark)
- temporary)))))
+ temporary
+ (pathname-newline-translation pathname))))))
(append-message "done")
value))
;;; -*-Scheme-*-
;;;
-;;; $Id: unix.scm,v 1.66 1996/04/24 02:18:04 cph Exp $
+;;; $Id: unix.scm,v 1.67 1996/04/24 02:29:50 cph Exp $
;;;
;;; Copyright (c) 1989-96 Massachusetts Institute of Technology
;;;
(list pathname mark)))
(group-insert-file! (mark-group mark)
(mark-index mark)
- temporary)))))
+ temporary
+ (pathname-newline-translation pathname))))))
(append-message "done")
value))