comparison lisp/mail/sendmail.el @ 8144:41071c0159f8

foo?
author Michael I. Bushnell <mib@gnu.org>
date Tue, 05 Jul 1994 16:52:59 +0000
parents 388fc8badf4a
children d94fc60e4195
comparison
equal deleted inserted replaced
8143:1c621b9896c0 8144:41071c0159f8
829 (switch-to-buffer "*mail*") 829 (switch-to-buffer "*mail*")
830 (if (file-exists-p (expand-file-name "~/")) 830 (if (file-exists-p (expand-file-name "~/"))
831 (setq default-directory (expand-file-name "~/"))) 831 (setq default-directory (expand-file-name "~/")))
832 (auto-save-mode auto-save-default) 832 (auto-save-mode auto-save-default)
833 (mail-mode) 833 (mail-mode)
834 ;; Disconnect the buffer from its visited file
835 ;; (in case the user has actually visited a file *mail*).
836 (set-visited-file-name nil)
834 (let (initialized) 837 (let (initialized)
835 (and (not noerase) 838 (and (not noerase)
836 (or (not (buffer-modified-p)) 839 (or (not (buffer-modified-p))
837 (y-or-n-p "Unsent message being composed; erase it? ")) 840 (y-or-n-p "Unsent message being composed; erase it? "))
838 (progn (erase-buffer) 841 (progn (erase-buffer)
854 (call-process "ls" nil standard-output nil "-l" file-name))) 857 (call-process "ls" nil standard-output nil "-l" file-name)))
855 (yes-or-no-p (format "Recover auto save file %s? " file-name))) 858 (yes-or-no-p (format "Recover auto save file %s? " file-name)))
856 (let ((buffer-read-only nil)) 859 (let ((buffer-read-only nil))
857 (erase-buffer) 860 (erase-buffer)
858 (insert-file-contents file-name nil))) 861 (insert-file-contents file-name nil)))
859 (t (error "mail-recover cancelled."))))) 862 (t (error "mail-recover cancelled")))))
860 863
861 ;;;###autoload 864 ;;;###autoload
862 (defun mail-other-window (&optional noerase to subject in-reply-to cc replybuffer sendactions) 865 (defun mail-other-window (&optional noerase to subject in-reply-to cc replybuffer sendactions)
863 "Like `mail' command, but display mail buffer in another window." 866 "Like `mail' command, but display mail buffer in another window."
864 (interactive "P") 867 (interactive "P")