]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-summary-bury): New function.
authorRichard M. Stallman <rms@gnu.org>
Sat, 22 Jun 1996 16:55:35 +0000 (16:55 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 22 Jun 1996 16:55:35 +0000 (16:55 +0000)
(rmail-summary-mode-map): Put rmail-summary-bury on b.

lisp/mail/rmailsum.el

index a3600fabba01e98bd33ce95e274f49f5556bbd79..7b2e2e21d9dc212ec21d6ed78e4d9eef45f4390f 100644 (file)
@@ -720,6 +720,7 @@ Commands for sorting the summary:
   (setq rmail-summary-mode-map (make-keymap))
   (suppress-keymap rmail-summary-mode-map)
   (define-key rmail-summary-mode-map "a"      'rmail-summary-add-label)
+  (define-key rmail-summary-mode-map "b"      'rmail-summary-bury)
   (define-key rmail-summary-mode-map "c"      'rmail-summary-continue)
   (define-key rmail-summary-mode-map "d"      'rmail-summary-delete-forward)
   (define-key rmail-summary-mode-map "\C-d"   'rmail-summary-delete-backward)
@@ -1041,6 +1042,17 @@ advance to the previous message."
   (beginning-of-buffer)
   (pop-to-buffer rmail-summary-buffer))
 
+(defun rmail-summary-bury ()
+  "Bury the Rmail buffer and the Rmail summary buffer."
+  (interactive)
+  (let ((buffer-to-bury (current-buffer)))
+    (let (window)
+      (while (setq window (get-buffer-window rmail-buffer))
+       (set-window-buffer window (other-buffer rmail-buffer)))
+      (bury-buffer rmail-buffer))
+    (switch-to-buffer (other-buffer buffer-to-bury))
+    (bury-buffer buffer-to-bury)))
+
 (defun rmail-summary-quit ()
   "Quit out of Rmail and Rmail summary."
   (interactive)