;;; -*-Scheme-*-
;;;
-;;; $Id: filcom.scm,v 1.195 1998/11/18 03:17:52 cph Exp $
+;;; $Id: filcom.scm,v 1.196 1998/11/18 03:42:26 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-98 Massachusetts Institute of Technology
;;;
(event-distributor/invoke! (ref-variable find-file-hooks buffer) buffer)
(load-find-file-initialization buffer pathname)))
\f
-(define (file-test-no-errors test pathname)
+(define (file-test-no-errors test . args)
(catch-file-errors (lambda () false)
- (lambda () (test pathname))))
+ (lambda () (apply test args))))
(define (file-newer-than-file? a b)
(let ((a (file-modification-time-indirect a)))
;;; -*-Scheme-*-
;;;
-;;; $Id: unix.scm,v 1.85 1998/10/23 05:42:24 cph Exp $
+;;; $Id: unix.scm,v 1.86 1998/11/18 03:40:46 cph Exp $
;;;
;;; Copyright (c) 1989-98 Massachusetts Institute of Technology
;;;
;; comparison, and will not notice aliases.
(let ((homedir (user-homedir-pathname)))
(let loop ((directory (directory-pathname pathname)))
- (cond ((file-eq? directory homedir)
+ (cond ((file-test-no-errors file-eq? directory homedir)
(string-append
"~/"
(->namestring (enough-pathname pathname directory))))