diff options
| author | Juanma Barranquero | 2008-10-28 11:35:02 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-10-28 11:35:02 +0000 |
| commit | 2bea27959e1b39947f0f0b25af01c5208f0c2c19 (patch) | |
| tree | e6e6875cb9564ff185aaf01e13dccc94c2f65a08 | |
| parent | eeaa563e845eff94719aa61f62c93ffcc3e11a14 (diff) | |
| download | emacs-2bea27959e1b39947f0f0b25af01c5208f0c2c19.tar.gz emacs-2bea27959e1b39947f0f0b25af01c5208f0c2c19.zip | |
* subr.el (locate-user-emacs-file): Simplify. Don't create
`user-emacs-directory' when Emacs is running in batch mode.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/subr.el | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 31be499710d..58467dead3b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2008-10-28 Juanma Barranquero <lekktu@gmail.com> | 1 | 2008-10-28 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 2 | ||
| 3 | * subr.el (locate-user-emacs-file): Simplify. Don't create | ||
| 4 | `user-emacs-directory' when Emacs is running in batch mode. | ||
| 5 | |||
| 3 | * startup.el (inhibit-startup-screen): Reflow docstring. | 6 | * startup.el (inhibit-startup-screen): Reflow docstring. |
| 4 | (user-mail-address, tool-bar-images-pixel-height): Fix docstring typos. | 7 | (user-mail-address, tool-bar-images-pixel-height): Fix docstring typos. |
| 5 | 8 | ||
| @@ -4413,7 +4416,6 @@ | |||
| 4413 | (vc-hg-diff): If no file is passed, use default-directory for cwd. | 4416 | (vc-hg-diff): If no file is passed, use default-directory for cwd. |
| 4414 | 4417 | ||
| 4415 | * vc-bzr.el (vc-bzr-log-view-mode): Set log-view-per-file-logs. | 4418 | * vc-bzr.el (vc-bzr-log-view-mode): Set log-view-per-file-logs. |
| 4416 | |||
| 4417 | * vc-svn.el (vc-svn-log-view-mode): New derived mode. | 4419 | * vc-svn.el (vc-svn-log-view-mode): New derived mode. |
| 4418 | 4420 | ||
| 4419 | 2008-06-15 Michael Albinus <michael.albinus@gmx.de> | 4421 | 2008-06-15 Michael Albinus <michael.albinus@gmx.de> |
diff --git a/lisp/subr.el b/lisp/subr.el index 0dda4b0e604..f0fe7be0700 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -2169,10 +2169,12 @@ directory if it does not exist." | |||
| 2169 | (at-home (and old-name (expand-file-name old-name home)))) | 2169 | (at-home (and old-name (expand-file-name old-name home)))) |
| 2170 | (if (and at-home (file-readable-p at-home)) | 2170 | (if (and at-home (file-readable-p at-home)) |
| 2171 | at-home | 2171 | at-home |
| 2172 | (unless (or purify-flag ;; don't create dir while dumping | 2172 | ;; Make sure `user-emacs-directory' exists, |
| 2173 | (file-accessible-directory-p | 2173 | ;; unless we're in batch mode or dumping Emacs |
| 2174 | (directory-file-name user-emacs-directory))) | 2174 | (or noninteractive |
| 2175 | (make-directory user-emacs-directory t)) ;; don't catch errors | 2175 | purify-flag |
| 2176 | (file-accessible-directory-p (directory-file-name user-emacs-directory)) | ||
| 2177 | (make-directory user-emacs-directory)) | ||
| 2176 | (expand-file-name new-name user-emacs-directory))))) | 2178 | (expand-file-name new-name user-emacs-directory))))) |
| 2177 | 2179 | ||
| 2178 | 2180 | ||