From 63388b6bc0ccbf6a2e4ea5bcd83d6dfee68abb51 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 11 Oct 1991 03:32:51 +0000 Subject: [PATCH] In M-x visit-tags-table, if the user types something that looks like a directory, then treat it as a directory. Previously it only did this if the file was actually a directory. --- v7/src/edwin/tagutl.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v7/src/edwin/tagutl.scm b/v7/src/edwin/tagutl.scm index 1622b0af0..b9b1b2719 100644 --- a/v7/src/edwin/tagutl.scm +++ b/v7/src/edwin/tagutl.scm @@ -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))))) -- 2.25.1