diff options
| author | Richard M. Stallman | 1996-04-03 04:51:35 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-04-03 04:51:35 +0000 |
| commit | 3943fa098eb21ae5f536a9dcd81b5b59aa37df80 (patch) | |
| tree | 743d0f693ca2770807da92bf3338731c08d0cca1 | |
| parent | 321eb232a3c24f8017609e586c7d84a185e21be7 (diff) | |
| download | emacs-3943fa098eb21ae5f536a9dcd81b5b59aa37df80.tar.gz emacs-3943fa098eb21ae5f536a9dcd81b5b59aa37df80.zip | |
(mail): Once again set default dir to home dir.
| -rw-r--r-- | lisp/mail/sendmail.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 5543ac198ab..a8185e1f557 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -1022,8 +1022,9 @@ The seventh argument ACTIONS is a list of actions to take | |||
| 1022 | (pop-to-buffer "*mail*") | 1022 | (pop-to-buffer "*mail*") |
| 1023 | ;; Put the auto-save file in the home dir | 1023 | ;; Put the auto-save file in the home dir |
| 1024 | ;; to avoid any danger that it can't be written. | 1024 | ;; to avoid any danger that it can't be written. |
| 1025 | (let ((default-directory "~/")) | 1025 | (if (file-exists-p (expand-file-name "~/")) |
| 1026 | (auto-save-mode auto-save-default)) | 1026 | (setq default-directory (expand-file-name "~/"))) |
| 1027 | (auto-save-mode auto-save-default) | ||
| 1027 | (mail-mode) | 1028 | (mail-mode) |
| 1028 | ;; Disconnect the buffer from its visited file | 1029 | ;; Disconnect the buffer from its visited file |
| 1029 | ;; (in case the user has actually visited a file *mail*). | 1030 | ;; (in case the user has actually visited a file *mail*). |