;;; -*-Scheme-*-
;;;
-;;; $Id: fileio.scm,v 1.131 1995/10/03 19:01:01 cph Exp $
+;;; $Id: fileio.scm,v 1.132 1995/10/03 21:12:25 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-95 Massachusetts Institute of Technology
;;;
(->namestring truename)
"\"...")))
(temporary-message msg)
- (do-it)
- (temporary-message msg "done"))
+ (let ((value (do-it)))
+ (temporary-message msg "done")
+ value))
(do-it))))))
(define (group-insert-file! group index truename)
;;; -*-Scheme-*-
;;;
-;;; $Id: unix.scm,v 1.56 1995/10/03 19:15:54 cph Exp $
+;;; $Id: unix.scm,v 1.57 1995/10/03 21:12:37 cph Exp $
;;;
;;; Copyright (c) 1989-95 Massachusetts Institute of Technology
;;;
(define (read-compressed-file program pathname mark)
(temporary-message "Uncompressing file " (->namestring pathname) "...")
- (call-with-temporary-file-pathname
- (lambda (temporary)
- (if (not (equal? '(EXITED . 0)
- (shell-command #f #f
- (directory-pathname pathname)
- #f
- (string-append
+ (let ((value
+ (call-with-temporary-file-pathname
+ (lambda (temporary)
+ (if (not (equal? '(EXITED . 0)
+ (shell-command #f #f
+ (directory-pathname pathname)
+ #f
+ (string-append
+ program
+ " < "
+ (file-namestring pathname)
+ " > "
+ (->namestring temporary)))))
+ (error:file-operation pathname
program
- " < "
- (file-namestring pathname)
- " > "
- (->namestring temporary)))))
- (error:file-operation pathname
- program
- "file"
- "[unknown]"
- read-compressed-file
- (list pathname mark)))
- (group-insert-file! (mark-group mark)
- (mark-index mark)
- temporary)))
- (append-message "done"))
+ "file"
+ "[unknown]"
+ read-compressed-file
+ (list pathname mark)))
+ (group-insert-file! (mark-group mark)
+ (mark-index mark)
+ temporary)))))
+ (append-message "done")
+ value))
(define (write-compressed-file program region pathname)
(temporary-message "Compressing file " (->namestring pathname) "...")