aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-11-08 13:16:17 +0000
committerEli Zaretskii2008-11-08 13:16:17 +0000
commit5463218ceb256c65db72a836bbdcabf536482fb0 (patch)
treed2f14ddf2008eaf83b7003e70bd49cce5eb00c57
parentee107a899db8545e2c29cbf0d3d009c4a6aa4953 (diff)
downloademacs-5463218ceb256c65db72a836bbdcabf536482fb0.tar.gz
emacs-5463218ceb256c65db72a836bbdcabf536482fb0.zip
(command-line): Ignore init-file-user when checking user's home directory
on MS-DOS as well.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/startup.el16
2 files changed, 14 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 27b856bc9bc..d23eb3eda06 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-11-08 Eli Zaretskii <eliz@gnu.org>
2
3 * startup.el (command-line): Ignore init-file-user when checking
4 user's home directory on MS-DOS as well.
5
12008-11-07 Sam Steingold <sds@gnu.org> 62008-11-07 Sam Steingold <sds@gnu.org>
2 7
3 * progmodes/cc-cmds.el (c-defun-name): Fix CLISP DEFUN handling. 8 * progmodes/cc-cmds.el (c-defun-name): Fix CLISP DEFUN handling.
diff --git a/lisp/startup.el b/lisp/startup.el
index 1532093ceec..6306fa78367 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -977,13 +977,15 @@ opening the first frame (e.g. open a connection to an X server).")
977 init-file-user) 977 init-file-user)
978 :error) 978 :error)
979 (if (file-directory-p (expand-file-name 979 (if (file-directory-p (expand-file-name
980 ;; We don't support ~USER on MS-Windows except 980 ;; We don't support ~USER on MS-Windows
981 ;; for the current user, and always load .emacs 981 ;; and MS-DOS except for the current
982 ;; from the current user's home directory (see 982 ;; user, and always load .emacs from
983 ;; below). So always check "~", even if invoked 983 ;; the current user's home directory
984 ;; with "-u USER", or if $USER or $LOGNAME are 984 ;; (see below). So always check "~",
985 ;; set to something different. 985 ;; even if invoked with "-u USER", or
986 (if (eq system-type 'windows-nt) 986 ;; if $USER or $LOGNAME are set to
987 ;; something different.
988 (if (memq system-type '(windows-nt ms-dos))
987 "~" 989 "~"
988 (concat "~" init-file-user)))) 990 (concat "~" init-file-user))))
989 nil 991 nil