]> git.eshelyaron.com Git - emacs.git/commitdiff
(mail): If homedir is nonexistent, don't use as default.
authorRichard M. Stallman <rms@gnu.org>
Sun, 12 Jun 1994 12:57:42 +0000 (12:57 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 12 Jun 1994 12:57:42 +0000 (12:57 +0000)
lisp/mail/sendmail.el

index 473504e2e3b0edf526c0529b1f01e0bbd494713a..d613a7588b8cb8c19f53badbc955cb37298e7e5b 100644 (file)
@@ -825,7 +825,8 @@ The seventh argument ACTIONS is a list of actions to take
 ;;;          (message "Auto save file for draft message exists; consider M-x mail-recover"))
 ;;;          t))
   (switch-to-buffer "*mail*")
-  (setq default-directory (expand-file-name "~/"))
+  (if (file-exists-p (expand-file-name "~/"))
+      (setq default-directory (expand-file-name "~/")))
   (auto-save-mode auto-save-default)
   (mail-mode)
   (let (initialized)