From: Glenn Morris Date: Sat, 4 Oct 2014 18:58:41 +0000 (-0700) Subject: * lisp/startup.el (command-line): Handle altered user-emacs-directory X-Git-Tag: emacs-25.0.90~2635^2~679^2~133 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b2ee3a278b06e270a0664547d621d7bbe1890ec2;p=emacs.git * lisp/startup.el (command-line): Handle altered user-emacs-directory in load-path warning. Fixes: debbugs:18512 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2ce89cdb655..6e3be6ce9aa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-10-04 Glenn Morris + + * startup.el (command-line): + Handle altered user-emacs-directory in load-path warning. (Bug#18512) + 2014-10-04 Martin Rudalics * window.el (window-full-height-p): Make it behave correctly for diff --git a/lisp/startup.el b/lisp/startup.el index a9bba57d707..1f524dc119e 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -1286,7 +1286,11 @@ the `--debug-init' option to view a complete error backtrace." (let (warned) (dolist (dir load-path) (and (not warned) - (string-match-p "/[._]emacs\\.d/?\\'" dir) + (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)