diff options
| -rw-r--r-- | lisp/startup.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index 4de390c44a5..5423b24fd60 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -149,8 +149,11 @@ this variable, if non-nil; 2. `~/.emacs'; 3. `default.el'.") | |||
| 149 | We do that if this regexp matches the locale name | 149 | We do that if this regexp matches the locale name |
| 150 | specified by the LC_ALL, LC_CTYPE and LANG environment variables.") | 150 | specified by the LC_ALL, LC_CTYPE and LANG environment variables.") |
| 151 | 151 | ||
| 152 | (defvar mail-host-address nil | ||
| 153 | "*Name of this machine, for purposes of naming users.") | ||
| 154 | |||
| 152 | (defvar user-mail-address nil | 155 | (defvar user-mail-address nil |
| 153 | "Full mailing address of this user.") | 156 | "*Full mailing address of this user.") |
| 154 | 157 | ||
| 155 | (defvar init-file-debug nil) | 158 | (defvar init-file-debug nil) |
| 156 | 159 | ||
| @@ -176,7 +179,9 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.") | |||
| 176 | (delete (concat "PWD=" pwd) | 179 | (delete (concat "PWD=" pwd) |
| 177 | process-environment))))))) | 180 | process-environment))))))) |
| 178 | (setq default-directory (abbreviate-file-name default-directory)) | 181 | (setq default-directory (abbreviate-file-name default-directory)) |
| 179 | (setq user-mail-address (concat (user-login-name) "@" (system-name))) | 182 | (setq user-mail-address (concat (user-login-name) "@" |
| 183 | (or mail-host-address | ||
| 184 | (system-name)))) | ||
| 180 | (let ((menubar-bindings-done nil)) | 185 | (let ((menubar-bindings-done nil)) |
| 181 | (unwind-protect | 186 | (unwind-protect |
| 182 | (command-line) | 187 | (command-line) |