]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow directories to be called .el in -add-subdirs-to-load-path
authorRobert Pluim <rpluim@gmail.com>
Wed, 26 Aug 2020 12:47:22 +0000 (14:47 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 26 Aug 2020 12:47:22 +0000 (14:47 +0200)
* lisp/startup.el (normal-top-level-add-subdirs-to-load-path):
Allow the directories to be called "<foo>.el" (bug#32266).

lisp/startup.el

index 364689ccdbffa5a3044ff0449a13f1518685a0a8..d9682eef4c88009d75daea2282d076638697796c 100644 (file)
@@ -463,9 +463,6 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
            (and (string-match "\\`[[:alnum:]]" file)
                 ;; The lower-case variants of RCS and CVS are for DOS/Windows.
                 (not (member file '("RCS" "CVS" "rcs" "cvs")))
-                ;; Avoid doing a `stat' when it isn't necessary because
-                ;; that can cause trouble when an NFS server is down.
-                (not (string-match "\\.elc?\\'" file))
                 (file-directory-p file)
                 (let ((expanded (expand-file-name file)))
                   (or (file-exists-p (expand-file-name ".nosearch" expanded))