diff options
| author | Glenn Morris | 2012-12-06 16:41:32 -0500 |
|---|---|---|
| committer | Glenn Morris | 2012-12-06 16:41:32 -0500 |
| commit | 070261664710ac7af1c49b6a97ecfed2f17c9431 (patch) | |
| tree | cee6477ed0d5832b834c73c9818002b9185149b7 /lisp | |
| parent | 82e1f390ab57d782ec5d143d99119db03698bd4f (diff) | |
| download | emacs-070261664710ac7af1c49b6a97ecfed2f17c9431.tar.gz emacs-070261664710ac7af1c49b6a97ecfed2f17c9431.zip | |
Further rmail.el fix for bug#13066
* lisp/mail/rmail.el (rmail-maybe-display-summary):
Preserve buffer, in case select-window changes it.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7e63136bac8..2626c14c593 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-maybe-display-summary): | ||
| 4 | Preserve buffer, in case select-window changes it. (Bug#13066) | ||
| 5 | |||
| 1 | 2012-12-06 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2012-12-06 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * emacs-lisp/cl.el, emacs-lisp/cl-lib.el: Move cl-unload-function and | 8 | * emacs-lisp/cl.el, emacs-lisp/cl-lib.el: Move cl-unload-function and |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 372b120046c..1b76b771f93 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -4194,6 +4194,7 @@ This has an effect only if a summary buffer exists." | |||
| 4194 | ;; Put the summary buffer back on the screen, if user wants that. | 4194 | ;; Put the summary buffer back on the screen, if user wants that. |
| 4195 | (defun rmail-maybe-display-summary () | 4195 | (defun rmail-maybe-display-summary () |
| 4196 | (let ((selected (selected-window)) | 4196 | (let ((selected (selected-window)) |
| 4197 | (buffer (current-buffer)) | ||
| 4197 | window) | 4198 | window) |
| 4198 | ;; If requested, make sure the summary is displayed. | 4199 | ;; If requested, make sure the summary is displayed. |
| 4199 | (and rmail-summary-buffer (buffer-name rmail-summary-buffer) | 4200 | (and rmail-summary-buffer (buffer-name rmail-summary-buffer) |
| @@ -4215,7 +4216,8 @@ This has an effect only if a summary buffer exists." | |||
| 4215 | (progn | 4216 | (progn |
| 4216 | (select-window window) | 4217 | (select-window window) |
| 4217 | (enlarge-window (- rmail-summary-window-size (window-height)))) | 4218 | (enlarge-window (- rmail-summary-window-size (window-height)))) |
| 4218 | (select-window selected))))) | 4219 | (select-window selected) |
| 4220 | (set-buffer buffer))))) | ||
| 4219 | 4221 | ||
| 4220 | ;;;; *** Rmail Local Fontification *** | 4222 | ;;;; *** Rmail Local Fontification *** |
| 4221 | 4223 | ||