diff options
| author | David Aspinall | 2012-08-09 12:41:07 +0000 |
|---|---|---|
| committer | David Aspinall | 2012-08-09 12:41:07 +0000 |
| commit | 7dc801a35f08f39d0a00b4a7fda78e4e41b4036f (patch) | |
| tree | 284bc7d0cd1c699eeb2dde4d726ac734cf46c57b | |
| parent | 4857932bc27545722658f148c20b7ceb5a08281a (diff) | |
coq-optimise-resp-windows: Check proof script buffer window exists, addressing Trac #446
| -rw-r--r-- | coq/coq.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2590,7 +2590,7 @@ number of hypothesis displayed, without hiding the goal" -;; This hook must be added before optim-resp-window, in order to be evaluated +;; This hook must be added before coq-optimise-resp-windows, in order to be evaluated ;; *after* windows resizing. (add-hook 'proof-shell-handle-delayed-output-hook 'coq-show-first-goal) @@ -2617,7 +2617,8 @@ number of hypothesis displayed, without hiding the goal" Only when three-buffer-mode is enabled." (when (and proof-three-window-enable (> (frame-height) 10) - (get-buffer-window proof-response-buffer)) + (get-buffer-window proof-response-buffer) + (and proof-script-buffer (get-buffer-window proof-script-buffer))) (let (;; maxhgth is the max height of both resp and goals buffers to avoid ;; make the other disappear (maxhgth (with-selected-window (get-buffer-window proof-script-buffer) |
