Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!seismo!hao!hplabs!sri-unix!thomas%UTAH-GR@utah-cs From: thomas%UTAH-GR@utah-cs@sri-unix.UUCP Newsgroups: net.emacs Subject: Fix to Emacs #264 filename completion routines. Message-ID: <3916@sri-arpa.UUCP> Date: Sat, 6-Aug-83 07:02:00 EDT Article-I.D.: sri-arpa.3916 Posted: Sat Aug 6 07:02:00 1983 Date-Received: Mon, 8-Aug-83 03:17:45 EDT Lines: 17 From: Spencer W. Thomas The filename completion routine does not invalidate the cache when the directory changes (as pointed out by David Chase at Rice). Here is a fix: 13a14 > static time_t DirModTime; /* modification time of in-core dir */ 157c158,160 < if (strcmp (dir, DirPath) == 0) --- > /* Return if dir is already incore and it hasn't changed on disk */ > if (DirModTime != 0 && stat(DirPath, &st) == 0 && > DirModTime == st.st_mtime && strcmp (dir, DirPath) == 0) 165a169 > DirModTime = st.st_mtime; =Spencer