From: Chris Hanson Date: Tue, 5 Oct 1993 07:40:59 +0000 (+0000) Subject: Fix think-o: argument to SET-VISITED-PATHNAME might be #F. X-Git-Tag: 20090517-FFI~7803 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=feeeba994bdbfd671cdd3a9b88412388944005d4;p=mit-scheme.git Fix think-o: argument to SET-VISITED-PATHNAME might be #F. --- diff --git a/v7/src/edwin/filcom.scm b/v7/src/edwin/filcom.scm index 25ee58a47..3b913fe86 100644 --- a/v7/src/edwin/filcom.scm +++ b/v7/src/edwin/filcom.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: filcom.scm,v 1.176 1993/09/08 19:50:18 cph Exp $ +;;; $Id: filcom.scm,v 1.177 1993/10/05 07:40:59 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989-93 Massachusetts Institute of Technology ;;; @@ -476,7 +476,7 @@ if you wish to make buffer not be visiting any file." pathname))))) (define (set-visited-pathname buffer pathname) - (if (not (pathname-name pathname)) + (if (and pathname (not (pathname-name pathname))) (editor-error "File name cannot be a directory: " (->namestring pathname))) (set-buffer-pathname! buffer pathname)