]> git.eshelyaron.com Git - emacs.git/commitdiff
(find-lisp-default-directory-predicate):
authorThien-Thi Nguyen <ttn@gnuvola.org>
Wed, 28 Feb 2007 10:44:10 +0000 (10:44 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Wed, 28 Feb 2007 10:44:10 +0000 (10:44 +0000)
Fix bug: Do symlink check on expanded filename.

lisp/find-lisp.el

index 18e30ef37eb142af3f5c94b01d4319a7d7e3bff7..0dd35f23514762e6582cf5408116d52a90e799bb 100644 (file)
@@ -95,7 +95,7 @@ PARENT is the parent directory of DIR."
           (string= dir "..")
           ;; Skip directories which are symlinks
           ;; Easy way to circumvent recursive loops
-          (file-symlink-p dir))))
+          (file-symlink-p (expand-file-name dir parent)))))
 
 (defun find-lisp-default-file-predicate  (file dir)
   "True if FILE matches `find-lisp-regexp'.