aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-03-25 20:49:23 +0000
committerRichard M. Stallman1995-03-25 20:49:23 +0000
commit67a6988bf8c6af8778f062e640efe71f57a866ca (patch)
tree86e52cd6cdbda2a30140dd43500839297830307f
parent35b12ec0fb20bb64dd6434f6b17af34e03783209 (diff)
downloademacs-67a6988bf8c6af8778f062e640efe71f57a866ca.tar.gz
emacs-67a6988bf8c6af8778f062e640efe71f57a866ca.zip
(mail): Use pop-to-buffer.
(same-window-buffer-names): Add *mail*. (mail-other-window, mail-other-frame): Bind to nil same-window-buffer-names, special-display-buffer-names, and ...regexps.
-rw-r--r--lisp/mail/sendmail.el16
1 files changed, 13 insertions, 3 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 633b7f4d3e2..8e2a7bc5bb8 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -964,7 +964,7 @@ The seventh argument ACTIONS is a list of actions to take
964;;; (file-exists-p buffer-auto-save-file-name)) 964;;; (file-exists-p buffer-auto-save-file-name))
965;;; (message "Auto save file for draft message exists; consider M-x mail-recover")) 965;;; (message "Auto save file for draft message exists; consider M-x mail-recover"))
966;;; t)) 966;;; t))
967 (switch-to-buffer "*mail*") 967 (pop-to-buffer "*mail*")
968 (if (file-exists-p (expand-file-name "~/")) 968 (if (file-exists-p (expand-file-name "~/"))
969 (setq default-directory (expand-file-name "~/"))) 969 (setq default-directory (expand-file-name "~/")))
970 (auto-save-mode auto-save-default) 970 (auto-save-mode auto-save-default)
@@ -1003,7 +1003,11 @@ The seventh argument ACTIONS is a list of actions to take
1003(defun mail-other-window (&optional noerase to subject in-reply-to cc replybuffer sendactions) 1003(defun mail-other-window (&optional noerase to subject in-reply-to cc replybuffer sendactions)
1004 "Like `mail' command, but display mail buffer in another window." 1004 "Like `mail' command, but display mail buffer in another window."
1005 (interactive "P") 1005 (interactive "P")
1006 (let ((pop-up-windows t)) 1006 (let ((pop-up-windows t)
1007 (special-display-buffer-names nil)
1008 (special-display-regexps nil)
1009 (same-window-buffer-names nil)
1010 (same-window-regexps nil))
1007 (pop-to-buffer "*mail*")) 1011 (pop-to-buffer "*mail*"))
1008 (mail noerase to subject in-reply-to cc replybuffer sendactions)) 1012 (mail noerase to subject in-reply-to cc replybuffer sendactions))
1009 1013
@@ -1011,7 +1015,11 @@ The seventh argument ACTIONS is a list of actions to take
1011(defun mail-other-frame (&optional noerase to subject in-reply-to cc replybuffer sendactions) 1015(defun mail-other-frame (&optional noerase to subject in-reply-to cc replybuffer sendactions)
1012 "Like `mail' command, but display mail buffer in another frame." 1016 "Like `mail' command, but display mail buffer in another frame."
1013 (interactive "P") 1017 (interactive "P")
1014 (let ((pop-up-frames t)) 1018 (let ((pop-up-frames t)
1019 (special-display-buffer-names nil)
1020 (special-display-regexps nil)
1021 (same-window-buffer-names nil)
1022 (same-window-regexps nil))
1015 (pop-to-buffer "*mail*")) 1023 (pop-to-buffer "*mail*"))
1016 (mail noerase to subject in-reply-to cc replybuffer sendactions)) 1024 (mail noerase to subject in-reply-to cc replybuffer sendactions))
1017 1025
@@ -1021,6 +1029,8 @@ The seventh argument ACTIONS is a list of actions to take
1021;;;###autoload (define-key ctl-x-4-map "m" 'mail-other-window) 1029;;;###autoload (define-key ctl-x-4-map "m" 'mail-other-window)
1022;;;###autoload (define-key ctl-x-5-map "m" 'mail-other-frame) 1030;;;###autoload (define-key ctl-x-5-map "m" 'mail-other-frame)
1023 1031
1032;;;###autoload (add-hook 'same-window-buffer-names "*mail*")
1033
1024;;; Do not add anything but external entries on this page. 1034;;; Do not add anything but external entries on this page.
1025 1035
1026(provide 'sendmail) 1036(provide 'sendmail)