CATCH-FILE-ERRORS.
;;; -*-Scheme-*-
;;;
-;;; $Id: autosv.scm,v 1.29 1994/03/08 20:16:41 cph Exp $
+;;; $Id: autosv.scm,v 1.30 1994/05/04 22:56:50 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-94 Massachusetts Institute of Technology
;;;
(not (let ((pathname (buffer-pathname buffer)))
(and pathname
(pathname=? auto-save-pathname pathname))))
- (catch-file-errors (lambda () false)
- (lambda ()
- (delete-file auto-save-pathname)
- true))))))
+ (delete-file-no-errors auto-save-pathname)))))
(define (rename-auto-save-file! buffer)
(let ((old-pathname (buffer-auto-save-pathname buffer)))
;;; -*-Scheme-*-
;;;
-;;; $Id: fileio.scm,v 1.119 1993/08/13 23:20:57 cph Exp $
+;;; $Id: fileio.scm,v 1.120 1994/05/04 22:56:34 cph Exp $
;;;
-;;; Copyright (c) 1986, 1989-1993 Massachusetts Institute of Technology
+;;; Copyright (c) 1986, 1989-94 Massachusetts Institute of Technology
;;;
;;; This material was developed by the Scheme project at the
;;; Massachusetts Institute of Technology, Department of
(if rename-back?
(begin
(set! rename-back? false)
- (catch-file-errors
- (lambda () unspecific)
- (lambda () (delete-file old))))))
+ (delete-file-no-errors old))))
(lambda ()
(if rename-back?
(begin
(copy-file truename backup-pathname)
false)
(begin
- (catch-file-errors
- (lambda () unspecific)
- (lambda () (delete-file backup-pathname)))
+ (delete-file-no-errors backup-pathname)
(rename-file truename backup-pathname)
(file-modes backup-pathname)))))))
(set-buffer-backed-up?!
(string-append
"Delete excess backup versions of "
(->namestring (buffer-pathname buffer))))))
- (for-each (lambda (target)
- (catch-file-errors
- (lambda () unspecific)
- (lambda () (delete-file target))))
- targets))
+ (for-each delete-file-no-errors targets))
modes)))))))
\f
;;;; Utilities for text end-of-line translation
;;; -*-Scheme-*-
;;;
-;;; $Id: rmail.scm,v 1.32 1994/03/22 17:08:20 cph Exp $
+;;; $Id: rmail.scm,v 1.33 1994/05/04 22:55:54 cph Exp $
;;;
-;;; Copyright (c) 1991-1993 Massachusetts Institute of Technology
+;;; Copyright (c) 1991-94 Massachusetts Institute of Technology
;;;
;;; This material was developed by the Scheme project at the
;;; Massachusetts Institute of Technology, Department of
false
'NO-BACKUP))))
(if delete-inboxes?
- (for-each (lambda (pathname)
- (catch-file-errors (lambda () unspecific)
- (lambda () (delete-file pathname))))
- inserted-inboxes))
+ (for-each delete-file-no-errors inserted-inboxes))
(cond ((> new-messages 0)
(message new-messages
" new message"