diff options
| author | Joakim Verona | 2012-12-28 11:31:25 +0100 |
|---|---|---|
| committer | Joakim Verona | 2012-12-28 11:31:25 +0100 |
| commit | 87bffe234eddab0df299a1acb549be912d10ea6c (patch) | |
| tree | ad51789131ac9f611a6ba412b88c2fd9be20bc21 | |
| parent | cd9a3354dd561de35e66bf1d3bcc403cccde4bbc (diff) | |
| parent | 7c3e220a6e0d6775080d8eb382a629b1e237a058 (diff) | |
| download | emacs-87bffe234eddab0df299a1acb549be912d10ea6c.tar.gz emacs-87bffe234eddab0df299a1acb549be912d10ea6c.zip | |
auto upstream
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 28 |
2 files changed, 12 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e13ce397bee..1083dc5513d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-12-28 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-maybe-display-summary): Rewrite | ||
| 4 | (Bug#13066). | ||
| 5 | |||
| 1 | 2012-12-28 Andreas Schwab <schwab@linux-m68k.org> | 6 | 2012-12-28 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 7 | ||
| 3 | * epg.el (epg--start): Modify process-environment locally. | 8 | * epg.el (epg--start): Modify process-environment locally. |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 9c48788553b..dbda8a6e26d 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -4224,31 +4224,17 @@ 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 | (let ((selected (selected-window)) | 4227 | (let (window size) |
| 4228 | (buffer (current-buffer)) | ||
| 4229 | window) | ||
| 4230 | ;; If requested, make sure the summary is displayed. | 4228 | ;; If requested, make sure the summary is displayed. |
| 4231 | (and rmail-summary-buffer (buffer-name rmail-summary-buffer) | 4229 | (and rmail-summary-buffer (buffer-name rmail-summary-buffer) |
| 4232 | rmail-redisplay-summary | 4230 | rmail-redisplay-summary |
| 4233 | (if (get-buffer-window rmail-summary-buffer 0) | 4231 | (setq window |
| 4234 | ;; It's already in some frame; show that one. | 4232 | (display-buffer |
| 4235 | (let ((frame (window-frame | 4233 | rmail-summary-buffer '(nil (reusable-frames . visible)))) |
| 4236 | (get-buffer-window rmail-summary-buffer 0)))) | ||
| 4237 | (make-frame-visible frame) | ||
| 4238 | (raise-frame frame)) | ||
| 4239 | (display-buffer rmail-summary-buffer))) | ||
| 4240 | ;; If requested, set the height of the summary window. | ||
| 4241 | (and rmail-summary-buffer (buffer-name rmail-summary-buffer) | ||
| 4242 | rmail-summary-window-size | 4234 | rmail-summary-window-size |
| 4243 | (setq window (get-buffer-window rmail-summary-buffer)) | 4235 | (setq size (- rmail-summary-window-size (window-height window))) |
| 4244 | ;; Don't try to change the size if just one window in frame. | 4236 | (window--resizable-p window size) |
| 4245 | (not (eq window (frame-root-window (window-frame window)))) | 4237 | (window-resize window size)))) |
| 4246 | (unwind-protect | ||
| 4247 | (progn | ||
| 4248 | (select-window window) | ||
| 4249 | (enlarge-window (- rmail-summary-window-size (window-height)))) | ||
| 4250 | (select-window selected) | ||
| 4251 | (set-buffer buffer))))) | ||
| 4252 | 4238 | ||
| 4253 | ;;;; *** Rmail Local Fontification *** | 4239 | ;;;; *** Rmail Local Fontification *** |
| 4254 | 4240 | ||