aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2007-09-23 15:32:17 +0000
committerRichard M. Stallman2007-09-23 15:32:17 +0000
commite32725a7f4b176c46cbe62a8ba697ecac30205c2 (patch)
treefb5fda58d84d340a25c76adcff4e2db8be230b1b
parent3e7a2d671a56e40c390f40333592dc3bd95296f7 (diff)
downloademacs-e32725a7f4b176c46cbe62a8ba697ecac30205c2.tar.gz
emacs-e32725a7f4b176c46cbe62a8ba697ecac30205c2.zip
(mail-bury): Delete the frame
if this frame looks like it was made for this message.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/mail/sendmail.el8
2 files changed, 16 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bc9f5b5dea7..8240349570a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,14 @@
12007-09-23 Richard Stallman <rms@gnu.org> 12007-09-23 Richard Stallman <rms@gnu.org>
2 2
3 * mail/sendmail.el (mail-bury): Delete the frame
4 if this frame looks like it was made for this message.
5
6 * completion.el (completion-separator-self-insert-command)
7 (completion-separator-self-insert-autofilling):
8 If `self-insert-command' has been remapped, use the substitute.
9
10 * simple.el (copy-region-as-kill): Doc fix.
11
3 * textmodes/org.el (org-confirm-shell-link-function) 12 * textmodes/org.el (org-confirm-shell-link-function)
4 (org-confirm-elisp-link-function): Doc fixes. 13 (org-confirm-elisp-link-function): Doc fixes.
5 14
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 5803661bc6e..2a986a33f72 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -767,7 +767,13 @@ Prefix arg means don't delete this window."
767 "Bury this mail buffer." 767 "Bury this mail buffer."
768 (let ((newbuf (other-buffer (current-buffer)))) 768 (let ((newbuf (other-buffer (current-buffer))))
769 (bury-buffer (current-buffer)) 769 (bury-buffer (current-buffer))
770 (if (and (or (window-dedicated-p (frame-selected-window)) 770 (if (and (or nil
771 ;; In this case, we need to go to a different frame.
772 (window-dedicated-p (frame-selected-window))
773 ;; In this mode of operation, the frame was probably
774 ;; made for this buffer, so the user probably wants
775 ;; to delete it now.
776 (and pop-up-frames (one-window-p))
771 (cdr (assq 'mail-dedicated-frame (frame-parameters)))) 777 (cdr (assq 'mail-dedicated-frame (frame-parameters))))
772 (not (null (delq (selected-frame) (visible-frame-list))))) 778 (not (null (delq (selected-frame) (visible-frame-list)))))
773 (progn 779 (progn