diff options
| author | Richard M. Stallman | 1994-09-22 04:56:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-22 04:56:49 +0000 |
| commit | c13fbb6297c20ce47925c09596cd0bf00f08bd82 (patch) | |
| tree | 8dff83504f93ae35c29347e363e224b7a5c8f617 | |
| parent | 7bbba4f213ab4e5c047a3dab09c6e56759519f7b (diff) | |
| download | emacs-c13fbb6297c20ce47925c09596cd0bf00f08bd82.tar.gz emacs-c13fbb6297c20ce47925c09596cd0bf00f08bd82.zip | |
(mail-host-address): New variable.
(normal-top-level): Use mail-host-address to init user-mail-address.
| -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) |