aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-24 20:20:22 +0000
committerRichard M. Stallman1993-07-24 20:20:22 +0000
commitb1d9bfa735f4c6eb57d22ce49405b6acd6180b9b (patch)
treeef2e7f672c92bc8021879d0c9021e5107e155918
parent166aaf6fb59de9e0b32ec6d75ac316b829d95fe6 (diff)
downloademacs-b1d9bfa735f4c6eb57d22ce49405b6acd6180b9b.tar.gz
emacs-b1d9bfa735f4c6eb57d22ce49405b6acd6180b9b.zip
(rmail-last-rmail-file): Initialize to a file name.
(rmail): Don't set rmail-last-rmail-file. (rmail-forward): Call rmail-start-mail for new frame even if just one window. (rmail-start-mail): Return what mail-other-frame returned.
-rw-r--r--lisp/mail/rmail.el16
1 files changed, 7 insertions, 9 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index afdf9cb44ec..e70161d507f 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -126,7 +126,7 @@ Called with region narrowed to unformatted header.")
126(defvar rmail-last-multi-labels nil) 126(defvar rmail-last-multi-labels nil)
127(defvar rmail-last-file nil) 127(defvar rmail-last-file nil)
128(defvar rmail-last-regexp nil) 128(defvar rmail-last-regexp nil)
129(defvar rmail-last-rmail-file nil) 129(defvar rmail-last-rmail-file (expand-file-name "~/XMAIL"))
130 130
131;;; Regexp matching the delimiter of messages in UNIX mail format 131;;; Regexp matching the delimiter of messages in UNIX mail format
132;;; (UNIX From lines), minus the initial ^. Note that if you change 132;;; (UNIX From lines), minus the initial ^. Note that if you change
@@ -201,8 +201,6 @@ that file, but does not copy any new mail into the file."
201 nil nil t)))) 201 nil nil t))))
202 (or rmail-last-file 202 (or rmail-last-file
203 (setq rmail-last-file (expand-file-name "~/xmail"))) 203 (setq rmail-last-file (expand-file-name "~/xmail")))
204 (or rmail-last-rmail-file
205 (setq rmail-last-rmail-file (expand-file-name "~/XMAIL")))
206 (let* ((file-name (expand-file-name (or file-name-arg rmail-file-name))) 204 (let* ((file-name (expand-file-name (or file-name-arg rmail-file-name)))
207 (existed (get-file-buffer file-name))) 205 (existed (get-file-buffer file-name)))
208 ;; Like find-file, but in the case where a buffer existed 206 ;; Like find-file, but in the case where a buffer existed
@@ -1654,7 +1652,7 @@ Deleted messages stay in the file until the \\[rmail-expunge] command is given."
1654 1652
1655(defun rmail-start-mail (&rest args) 1653(defun rmail-start-mail (&rest args)
1656 (if rmail-mail-new-frame 1654 (if rmail-mail-new-frame
1657 (progn 1655 (prog1
1658 (apply 'mail-other-frame args) 1656 (apply 'mail-other-frame args)
1659 (modify-frame-parameters (selected-frame) 1657 (modify-frame-parameters (selected-frame)
1660 '((dedicated . t)))) 1658 '((dedicated . t))))
@@ -1813,7 +1811,7 @@ see the documentation of `rmail-resend'."
1813 ;; Otherwise, use another window for the mail buffer 1811 ;; Otherwise, use another window for the mail buffer
1814 ;; so that the Rmail buffer remains visible 1812 ;; so that the Rmail buffer remains visible
1815 ;; and sending the mail will get back to it. 1813 ;; and sending the mail will get back to it.
1816 (if (funcall (if (one-window-p t) 1814 (if (funcall (if (and (not rmail-mail-new-frame) (one-window-p t))
1817 (function mail) 1815 (function mail)
1818 (function rmail-start-mail)) 1816 (function rmail-start-mail))
1819 nil nil subject nil nil nil 1817 nil nil subject nil nil nil
@@ -1824,10 +1822,10 @@ see the documentation of `rmail-resend'."
1824 "forwarded" t msgnum)))) 1822 "forwarded" t msgnum))))
1825 (current-buffer) 1823 (current-buffer)
1826 rmail-current-message))) 1824 rmail-current-message)))
1827 (save-excursion 1825 (save-excursion
1828 (goto-char (point-max)) 1826 (goto-char (point-max))
1829 (forward-line 1) 1827 (forward-line 1)
1830 (insert-buffer forward-buffer))))))) 1828 (insert-buffer forward-buffer)))))))
1831 1829
1832(defun rmail-resend (address &optional from comment mail-alias-file) 1830(defun rmail-resend (address &optional from comment mail-alias-file)
1833 "Resend current message to ADDRESSES. 1831 "Resend current message to ADDRESSES.