+2012-12-06 Glenn Morris <rgm@gnu.org>
+
+ * mail/rmail.el (rmail-maybe-display-summary):
+ Preserve buffer, in case select-window changes it. (Bug#13066)
+
2012-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/cl.el, emacs-lisp/cl-lib.el: Move cl-unload-function and
;; Put the summary buffer back on the screen, if user wants that.
(defun rmail-maybe-display-summary ()
(let ((selected (selected-window))
+ (buffer (current-buffer))
window)
;; If requested, make sure the summary is displayed.
(and rmail-summary-buffer (buffer-name rmail-summary-buffer)
(progn
(select-window window)
(enlarge-window (- rmail-summary-window-size (window-height))))
- (select-window selected)))))
+ (select-window selected)
+ (set-buffer buffer)))))
\f
;;;; *** Rmail Local Fontification ***