]> git.eshelyaron.com Git - emacs.git/commitdiff
(mail-bury): Delete the frame
authorRichard M. Stallman <rms@gnu.org>
Sun, 23 Sep 2007 15:32:17 +0000 (15:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 23 Sep 2007 15:32:17 +0000 (15:32 +0000)
if this frame looks like it was made for this message.

lisp/ChangeLog
lisp/mail/sendmail.el

index bc9f5b5dea79885fd772712c502d43b6bc2c82bd..8240349570aded868253d822fdec3dd17dc49576 100644 (file)
@@ -1,5 +1,14 @@
 2007-09-23  Richard Stallman  <rms@gnu.org>
 
+       * mail/sendmail.el (mail-bury): Delete the frame
+       if this frame looks like it was made for this message.
+
+       * completion.el (completion-separator-self-insert-command)
+       (completion-separator-self-insert-autofilling):
+       If `self-insert-command' has been remapped, use the substitute.
+
+       * simple.el (copy-region-as-kill): Doc fix.
+
        * textmodes/org.el (org-confirm-shell-link-function)
        (org-confirm-elisp-link-function): Doc fixes.
 
index 5803661bc6e23a4cc4c0e1063c5fa0aba2dd17ff..2a986a33f72319e8db2e5dd45ca71c87bb73a5aa 100644 (file)
@@ -767,7 +767,13 @@ Prefix arg means don't delete this window."
   "Bury this mail buffer."
   (let ((newbuf (other-buffer (current-buffer))))
     (bury-buffer (current-buffer))
-    (if (and (or (window-dedicated-p (frame-selected-window))
+    (if (and (or nil
+                ;; In this case, we need to go to a different frame.
+                (window-dedicated-p (frame-selected-window))
+                ;; In this mode of operation, the frame was probably
+                ;; made for this buffer, so the user probably wants
+                ;; to delete it now.
+                (and pop-up-frames (one-window-p))
                 (cdr (assq 'mail-dedicated-frame (frame-parameters))))
             (not (null (delq (selected-frame) (visible-frame-list)))))
        (progn