emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/startup.el


From: Eli Zaretskii
Subject: [Emacs-diffs] Changes to emacs/lisp/startup.el
Date: Fri, 05 May 2006 11:36:00 +0000

Index: emacs/lisp/startup.el
diff -u emacs/lisp/startup.el:1.403 emacs/lisp/startup.el:1.404
--- emacs/lisp/startup.el:1.403 Tue May  2 12:32:57 2006
+++ emacs/lisp/startup.el       Fri May  5 11:36:00 2006
@@ -820,7 +820,16 @@
                           (format "Invalid user name %s"
                                   init-file-user)
                           :error)
-       (if (file-directory-p (expand-file-name (concat "~" init-file-user)))
+       (if (file-directory-p (expand-file-name
+                              ;; We don't support ~USER on MS-Windows except
+                              ;; for the current user, and always load .emacs
+                              ;; from the current user's home directory (see
+                              ;; below).  So always check "~", even if invoked
+                              ;; with "-u USER", or if $USER or $LOGNAME are
+                              ;; set to something different.
+                              (if (eq system-type 'windows-nt)
+                                  "~"
+                                (concat "~" init-file-user))))
            nil
          (display-warning 'initialization
                           (format "User %s has no home directory"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]