diff options
| author | Eli Zaretskii | 2006-05-05 11:36:34 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-05-05 11:36:34 +0000 |
| commit | 1df1e49eb3895862c358fd12c656727c5be697a8 (patch) | |
| tree | 823709e691d9781ccc2be444a0bd6c2f553235b8 /lisp | |
| parent | a12aece30906d6a8b03611262169ba181b37b93b (diff) | |
| download | emacs-1df1e49eb3895862c358fd12c656727c5be697a8.tar.gz emacs-1df1e49eb3895862c358fd12c656727c5be697a8.zip | |
(command-line): On MS-Windows, probe "~", not "~USER", for warning about
non-existent home directory
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/startup.el | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 18b105e9a3d..07531c46810 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2006-05-05 Eli Zaretskii <eliz@gnu.org> | 1 | 2006-05-05 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * startup.el (command-line): On MS-Windows, probe "~", not | ||
| 4 | "~USER", for warning about non-existent home directory | ||
| 5 | |||
| 3 | * arc-mode.el (archive-l-e): New optional argument `float' means | 6 | * arc-mode.el (archive-l-e): New optional argument `float' means |
| 4 | generate a float value. | 7 | generate a float value. |
| 5 | (archive-arc-summarize, archive-lzh-summarize) | 8 | (archive-arc-summarize, archive-lzh-summarize) |
diff --git a/lisp/startup.el b/lisp/startup.el index 8369ecddd42..a9a79e63be4 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -820,7 +820,16 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 820 | (format "Invalid user name %s" | 820 | (format "Invalid user name %s" |
| 821 | init-file-user) | 821 | init-file-user) |
| 822 | :error) | 822 | :error) |
| 823 | (if (file-directory-p (expand-file-name (concat "~" init-file-user))) | 823 | (if (file-directory-p (expand-file-name |
| 824 | ;; We don't support ~USER on MS-Windows except | ||
| 825 | ;; for the current user, and always load .emacs | ||
| 826 | ;; from the current user's home directory (see | ||
| 827 | ;; below). So always check "~", even if invoked | ||
| 828 | ;; with "-u USER", or if $USER or $LOGNAME are | ||
| 829 | ;; set to something different. | ||
| 830 | (if (eq system-type 'windows-nt) | ||
| 831 | "~" | ||
| 832 | (concat "~" init-file-user)))) | ||
| 824 | nil | 833 | nil |
| 825 | (display-warning 'initialization | 834 | (display-warning 'initialization |
| 826 | (format "User %s has no home directory" | 835 | (format "User %s has no home directory" |