1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

* lisp/startup.el (command-line): Handle nil elements in load-path.

This commit is contained in:
Glenn Morris 2014-11-09 23:12:37 -08:00
parent 03400ec333
commit edfdb22f67
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-11-10 Glenn Morris <rgm@gnu.org>
* startup.el (command-line): Handle nil elements in load-path.
2014-11-08 Glenn Morris <rgm@gnu.org>
* emacs-lisp/bytecomp.el (byte-compile-report-error):

View File

@ -1319,6 +1319,7 @@ the `--debug-init' option to view a complete error backtrace."
(let (warned)
(dolist (dir load-path)
(and (not warned)
(stringp dir)
(string-match-p "/[._]emacs\\.d/?\\'" dir)
(string-equal (file-name-as-directory (expand-file-name dir))
(expand-file-name user-emacs-directory))