Fix think-o: argument to SET-VISITED-PATHNAME might be #F.
authorChris Hanson <org/chris-hanson/cph>
Tue, 5 Oct 1993 07:40:59 +0000 (07:40 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 5 Oct 1993 07:40:59 +0000 (07:40 +0000)
v7/src/edwin/filcom.scm

index 25ee58a47dbc7f9feef143a3c8d3bf55f2251218..3b913fe86b695b995f75eb825bee33a10fd61f72 100644 (file)
@@ -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)