]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/startup.el (command-line): Remove pointless attempt to avoid statting fs
authorGlenn Morris <rgm@gnu.org>
Thu, 30 Oct 2014 22:52:38 +0000 (18:52 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 30 Oct 2014 22:52:38 +0000 (18:52 -0400)
; which expand-file-name doesn't even do.

lisp/ChangeLog
lisp/startup.el

index 91f61aa448bcba6bf1f77df24f0b066857b4514b..e56829783f4c5a2a39238fa48fa6bb952db736aa 100644 (file)
@@ -1,3 +1,8 @@
+2014-10-30  Glenn Morris  <rgm@gnu.org>
+
+       * startup.el (command-line): Remove pointless attempt to avoid
+       statting the file-system (which expand-file-name doesn't do).
+
 2014-10-30  Alan Mackenzie  <acm@muc.de>
 
        Add "enum classs" support to C++ mode.
index 88611a0cd8f65b4847b9822683590d8807c1d4af..fcbd06da0d0b194124455e6fd23693402e2332cf 100644 (file)
@@ -1286,11 +1286,6 @@ the `--debug-init' option to view a complete error backtrace."
   (let (warned)
     (dolist (dir load-path)
       (and (not warned)
-          (string-match-p
-           (format "/%s/?\\'"
-                   (regexp-quote
-                    (file-name-nondirectory
-                     (directory-file-name user-emacs-directory)))) dir)
           (string-equal (file-name-as-directory (expand-file-name dir))
                         (expand-file-name user-emacs-directory))
           (setq warned t)