In M-x visit-tags-table, if the user types something that looks like a
authorChris Hanson <org/chris-hanson/cph>
Fri, 11 Oct 1991 03:32:51 +0000 (03:32 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 11 Oct 1991 03:32:51 +0000 (03:32 +0000)
directory, then treat it as a directory.  Previously it only did this
if the file was actually a directory.

v7/src/edwin/tagutl.scm

index 1622b0af09676a9400645f2d56837f3ca13bdce9..b9b1b27195d2de754718a3cf193af26ac8614e2e 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/tagutl.scm,v 1.42 1991/05/20 20:31:21 cph Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/tagutl.scm,v 1.43 1991/10/11 03:32:51 cph Exp $
 ;;;
 ;;;    Copyright (c) 1986, 1989-91 Massachusetts Institute of Technology
 ;;;
@@ -60,7 +60,8 @@ A directory name is ok too; it means file TAGS in that directory."
     (let ((pathname (->pathname filename)))
       (set-variable!
        tags-table-pathname
-       (if (file-directory? pathname)
+       (if (or (not (pathname-name pathname))
+              (file-directory? pathname))
           (pathname-new-name (pathname-as-directory pathname) "TAGS")
           pathname)))))