diff options
| author | Glenn Morris | 2014-11-09 23:12:37 -0800 |
|---|---|---|
| committer | Glenn Morris | 2014-11-09 23:12:37 -0800 |
| commit | edfdb22f674312389ccf5d5e37efa4d3f1516994 (patch) | |
| tree | e0dcfe5cccbd304098750311baf59bcbde067541 | |
| parent | 03400ec3333041b38153e002d0a242b09a55b23b (diff) | |
| download | emacs-edfdb22f674312389ccf5d5e37efa4d3f1516994.tar.gz emacs-edfdb22f674312389ccf5d5e37efa4d3f1516994.zip | |
* lisp/startup.el (command-line): Handle nil elements in load-path.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/startup.el | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c3ecb7536e0..33777c5afa4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-11-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * startup.el (command-line): Handle nil elements in load-path. | ||
| 4 | |||
| 1 | 2014-11-08 Glenn Morris <rgm@gnu.org> | 5 | 2014-11-08 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-report-error): | 7 | * emacs-lisp/bytecomp.el (byte-compile-report-error): |
diff --git a/lisp/startup.el b/lisp/startup.el index 54ed53e69c8..17930b4a7b0 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -1319,6 +1319,7 @@ the `--debug-init' option to view a complete error backtrace." | |||
| 1319 | (let (warned) | 1319 | (let (warned) |
| 1320 | (dolist (dir load-path) | 1320 | (dolist (dir load-path) |
| 1321 | (and (not warned) | 1321 | (and (not warned) |
| 1322 | (stringp dir) | ||
| 1322 | (string-match-p "/[._]emacs\\.d/?\\'" dir) | 1323 | (string-match-p "/[._]emacs\\.d/?\\'" dir) |
| 1323 | (string-equal (file-name-as-directory (expand-file-name dir)) | 1324 | (string-equal (file-name-as-directory (expand-file-name dir)) |
| 1324 | (expand-file-name user-emacs-directory)) | 1325 | (expand-file-name user-emacs-directory)) |