diff options
| author | Karl Heuer | 1999-06-05 01:18:14 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-06-05 01:18:14 +0000 |
| commit | 042dc0345a4728802bc91492fe4c502ebb1e259a (patch) | |
| tree | 2d4a2d5d3c62de8f085d2415c7f646cf62eefb62 | |
| parent | 75062f590960600171dd342d236254d85d3f303f (diff) | |
| download | emacs-042dc0345a4728802bc91492fe4c502ebb1e259a.tar.gz emacs-042dc0345a4728802bc91492fe4c502ebb1e259a.zip | |
(command-line): Don't set user-init-file directly;
tell `load' to set it.
| -rw-r--r-- | lisp/startup.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index bb2a7c4536f..660836dd8df 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -702,8 +702,7 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 702 | (function | 702 | (function |
| 703 | (lambda () | 703 | (lambda () |
| 704 | (if init-file-user | 704 | (if init-file-user |
| 705 | (progn | 705 | (let ((user-init-file-1 |
| 706 | (setq user-init-file | ||
| 707 | (cond | 706 | (cond |
| 708 | ((eq system-type 'ms-dos) | 707 | ((eq system-type 'ms-dos) |
| 709 | (concat "~" init-file-user "/_emacs")) | 708 | (concat "~" init-file-user "/_emacs")) |
| @@ -714,8 +713,11 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 714 | ((eq system-type 'vax-vms) | 713 | ((eq system-type 'vax-vms) |
| 715 | "sys$login:.emacs") | 714 | "sys$login:.emacs") |
| 716 | (t | 715 | (t |
| 717 | (concat "~" init-file-user "/.emacs")))) | 716 | (concat "~" init-file-user "/.emacs"))))) |
| 718 | (load user-init-file t t) | 717 | ;; This tells `load' to store the file name found |
| 718 | ;; into user-init-file. | ||
| 719 | (setq user-init-file t) | ||
| 720 | (load user-init-file-1 t t) | ||
| 719 | (or inhibit-default-init | 721 | (or inhibit-default-init |
| 720 | (let ((inhibit-startup-message nil)) | 722 | (let ((inhibit-startup-message nil)) |
| 721 | ;; Users are supposed to be told their rights. | 723 | ;; Users are supposed to be told their rights. |