Subject: bug#13066: 24.2.90; setting rmail-summary-window-size causes error

From: Glenn Morris <[email-masked]>
Date: Mon, 03 Dec 2012 21:18:19 -0500

I think it's probably something to do with select-window selecting a
buffer when it didn't before. At least it looks to me like
the end of rmail-maybe-display-summary is changing buffer when in 24.2
it seems not to.

I think this makes the problem go away. Other uses are unaffected AFAICS.

*** lisp/mail/rmailsum.el	2012-10-12 01:01:50 +0000
--- lisp/mail/rmailsum.el	2012-12-04 02:10:21 +0000
***************
*** 428,434 ****
        ;; This is how rmail makes the summary buffer reappear.
        ;; We do this here to make the window the proper size.
        (rmail-select-summary nil)
!       (set-buffer rmail-summary-buffer))
      (rmail-summary-goto-msg mesg t t)
      (rmail-summary-construct-io-menu)
      (message "Computing summary lines...done")))
--- 428,434 ----
        ;; This is how rmail makes the summary buffer reappear.
        ;; We do this here to make the window the proper size.
        (rmail-select-summary nil)
!       (set-buffer sumbuf))
      (rmail-summary-goto-msg mesg t t)
      (rmail-summary-construct-io-menu)
      (message "Computing summary lines...done")))