diff options
| author | Glenn Morris | 2014-10-04 11:58:41 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-10-04 11:58:41 -0700 |
| commit | b2ee3a278b06e270a0664547d621d7bbe1890ec2 (patch) | |
| tree | 423e9b305817f3ad531e255f32595ea9fe930ae1 | |
| parent | 07e80dac81fb1f2ea263f7d272f80109d8f588b8 (diff) | |
| download | emacs-b2ee3a278b06e270a0664547d621d7bbe1890ec2.tar.gz emacs-b2ee3a278b06e270a0664547d621d7bbe1890ec2.zip | |
* lisp/startup.el (command-line): Handle altered user-emacs-directory
in load-path warning.
Fixes: debbugs:18512
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/startup.el | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2ce89cdb655..6e3be6ce9aa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-10-04 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * startup.el (command-line): | ||
| 4 | Handle altered user-emacs-directory in load-path warning. (Bug#18512) | ||
| 5 | |||
| 1 | 2014-10-04 Martin Rudalics <rudalics@gmx.at> | 6 | 2014-10-04 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * window.el (window-full-height-p): Make it behave correctly for | 8 | * 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." | |||
| 1286 | (let (warned) | 1286 | (let (warned) |
| 1287 | (dolist (dir load-path) | 1287 | (dolist (dir load-path) |
| 1288 | (and (not warned) | 1288 | (and (not warned) |
| 1289 | (string-match-p "/[._]emacs\\.d/?\\'" dir) | 1289 | (string-match-p |
| 1290 | (format "/%s/?\\'" | ||
| 1291 | (regexp-quote | ||
| 1292 | (file-name-nondirectory | ||
| 1293 | (directory-file-name user-emacs-directory)))) dir) | ||
| 1290 | (string-equal (file-name-as-directory (expand-file-name dir)) | 1294 | (string-equal (file-name-as-directory (expand-file-name dir)) |
| 1291 | (expand-file-name user-emacs-directory)) | 1295 | (expand-file-name user-emacs-directory)) |
| 1292 | (setq warned t) | 1296 | (setq warned t) |