# HG changeset patch # User Juanma Barranquero # Date 1225193702 0 # Node ID fc215de0bf9399d80798735ca745acc18f4b892c # Parent 5f8d9a97e74f940531b194fade4294bc7f28e1e1 * subr.el (locate-user-emacs-file): Simplify. Don't create `user-emacs-directory' when Emacs is running in batch mode. diff -r 5f8d9a97e74f -r fc215de0bf93 lisp/ChangeLog --- a/lisp/ChangeLog Tue Oct 28 11:17:05 2008 +0000 +++ b/lisp/ChangeLog Tue Oct 28 11:35:02 2008 +0000 @@ -1,5 +1,8 @@ 2008-10-28 Juanma Barranquero + * subr.el (locate-user-emacs-file): Simplify. Don't create + `user-emacs-directory' when Emacs is running in batch mode. + * startup.el (inhibit-startup-screen): Reflow docstring. (user-mail-address, tool-bar-images-pixel-height): Fix docstring typos. @@ -4413,7 +4416,6 @@ (vc-hg-diff): If no file is passed, use default-directory for cwd. * vc-bzr.el (vc-bzr-log-view-mode): Set log-view-per-file-logs. - * vc-svn.el (vc-svn-log-view-mode): New derived mode. 2008-06-15 Michael Albinus diff -r 5f8d9a97e74f -r fc215de0bf93 lisp/subr.el --- a/lisp/subr.el Tue Oct 28 11:17:05 2008 +0000 +++ b/lisp/subr.el Tue Oct 28 11:35:02 2008 +0000 @@ -2169,10 +2169,12 @@ (at-home (and old-name (expand-file-name old-name home)))) (if (and at-home (file-readable-p at-home)) at-home - (unless (or purify-flag ;; don't create dir while dumping - (file-accessible-directory-p - (directory-file-name user-emacs-directory))) - (make-directory user-emacs-directory t)) ;; don't catch errors + ;; Make sure `user-emacs-directory' exists, + ;; unless we're in batch mode or dumping Emacs + (or noninteractive + purify-flag + (file-accessible-directory-p (directory-file-name user-emacs-directory)) + (make-directory user-emacs-directory)) (expand-file-name new-name user-emacs-directory)))))