diff options
| author | Martin Rudalics | 2012-12-31 12:35:13 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2012-12-31 12:35:13 +0100 |
| commit | 27fcfe31010c45f2e87ce51fa2fe99183731e261 (patch) | |
| tree | 7f0a28c296ea2132a8d0cf6ac675277a9d05ddbb /lisp/mail | |
| parent | 393e7ee04463305dfbd0027e3e7c72fc80888186 (diff) | |
| download | emacs-27fcfe31010c45f2e87ce51fa2fe99183731e261.tar.gz emacs-27fcfe31010c45f2e87ce51fa2fe99183731e261.zip | |
Once more fix resizing of rmail summary window.
* window.el (window-resizable--p): Rename to window-resizable-p.
(window-resize-no-error): New function.
* mail/rmail.el (rmail-maybe-display-summary): Restore behavior
broken in fix from 2012-12-28.
Diffstat (limited to 'lisp/mail')
| -rw-r--r-- | lisp/mail/rmail.el | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 096b53c6cab..947d8e2cb4c 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -4224,15 +4224,25 @@ This has an effect only if a summary buffer exists." | |||
| 4224 | 4224 | ||
| 4225 | ;; Put the summary buffer back on the screen, if user wants that. | 4225 | ;; Put the summary buffer back on the screen, if user wants that. |
| 4226 | (defun rmail-maybe-display-summary () | 4226 | (defun rmail-maybe-display-summary () |
| 4227 | ;; If requested, make sure the summary is displayed. | 4227 | (cond |
| 4228 | (when (and rmail-summary-buffer (buffer-name rmail-summary-buffer) | 4228 | ((or (not rmail-summary-buffer) |
| 4229 | rmail-redisplay-summary) | 4229 | (not (buffer-name rmail-summary-buffer)))) |
| 4230 | (rmail-redisplay-summary | ||
| 4231 | ;; If `rmail-redisplay-summary' is non-nil, make sure the summary | ||
| 4232 | ;; buffer is displayed. | ||
| 4230 | (display-buffer | 4233 | (display-buffer |
| 4231 | rmail-summary-buffer | 4234 | rmail-summary-buffer |
| 4232 | `(nil | 4235 | `(nil |
| 4233 | (reusable-frames . 0) | 4236 | (reusable-frames . 0) |
| 4234 | ,(when rmail-summary-window-size | 4237 | ,(when rmail-summary-window-size |
| 4235 | `(window-height . ,rmail-summary-window-size)))))) | 4238 | `(window-height . ,rmail-summary-window-size))))) |
| 4239 | (rmail-summary-window-size | ||
| 4240 | ;; If `rmail-summary-window-size' is non-nil and the summary buffer | ||
| 4241 | ;; is displayed, make sure it gets resized. | ||
| 4242 | (let ((window (get-buffer-window rmail-summary-buffer 0))) | ||
| 4243 | (when window | ||
| 4244 | (window-resize-no-error | ||
| 4245 | window (- rmail-summary-window-size (window-height window)))))))) | ||
| 4236 | 4246 | ||
| 4237 | ;;;; *** Rmail Local Fontification *** | 4247 | ;;;; *** Rmail Local Fontification *** |
| 4238 | 4248 | ||