Fixed bug in rmail-summary-{exit,quit} which appeared
authorBrian A. LaMacchia <edu/mit/csail/zurich/bal>
Tue, 10 Sep 1991 13:53:21 +0000 (13:53 +0000)
committerBrian A. LaMacchia <edu/mit/csail/zurich/bal>
Tue, 10 Sep 1991 13:53:21 +0000 (13:53 +0000)
when there was only one window open, and it was the summary window.

v7/src/edwin/rmailsum.scm

index d091845d2f0991033ea0437bc57f17e608fc44fd..b28d671824036ff0a4fdcd85712e4496d77817b2 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/rmailsum.scm,v 1.13 1991/08/28 14:35:58 bal Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/rmailsum.scm,v 1.14 1991/09/10 13:53:21 bal Exp $
 ;;;
 ;;;    Copyright (c) 1991 Massachusetts Institute of Technology
 ;;;
@@ -654,7 +654,9 @@ and undelete it."
   '()
   (lambda ()
     (bury-buffer (current-buffer))
-    ((ref-command delete-window))))
+    (if (window-has-no-neighbors? (current-window))
+       (select-buffer rmail-buffer)
+       ((ref-command delete-window)))))
 
 (define-command rmail-summary-quit
   "Exit RMAIL Summary mode and RMAIL mode."