+2008-09-29 Eli Zaretskii <eliz@gnu.org>
+
+ * files.el (locate-dominating-file): Take file-attributes of
+ `dir', not of `file' (which never changes).
+
2008-09-29 Michael Albinus <michael.albinus@gmx.de>
* files.el (file-remote-p): Precise doc string; IDENTIFICATION can
;; things like /net and /afs. This assumes that all the
;; files inside a project belong to the same user.
(let ((prev-user user))
- (setq user (nth 2 (file-attributes file)))
+ (setq user (nth 2 (file-attributes dir)))
(or (null prev-user) (equal user prev-user))))
(if (setq files (and (file-directory-p dir)
(directory-files dir 'full regexp)))