Commit 556f7d77 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(command-line): Init user-mail-address here, after reading init file.

(normal-top-level): Not here.
parent 5a31e1d0
......@@ -275,9 +275,6 @@ this prefix to create a unique file name.")
(delete (concat "PWD=" pwd)
(setq default-directory (abbreviate-file-name default-directory))
(setq user-mail-address (concat (user-login-name) "@"
(or mail-host-address
;; Specify the file for recording all the auto save files of this session.
;; This is used by recover-session.
(setq auto-save-list-file-name
......@@ -525,6 +522,12 @@ this prefix to create a unique file name.")
(if debug-on-error-should-be-set
(setq debug-on-error debug-on-error-from-init-file)))
;; Do this here in case the init file sets mail-host-address.
(or user-mail-address
(setq user-mail-address (concat (user-login-name) "@"
(or mail-host-address
(run-hooks 'after-init-hook)
;; If *scratch* exists and init file didn't change its mode, initialize it.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment