aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic/pg-assoc.el
diff options
context:
space:
mode:
authorGravatar Pierre Courtieu <courtieu@lri.fr>2007-04-27 08:39:59 +0000
committerGravatar Pierre Courtieu <courtieu@lri.fr>2007-04-27 08:39:59 +0000
commit552108abaa8c1ffb78319398e10b058485f57a31 (patch)
treefc1e53fd789ed4091eacfde683979bcbb984ce3a /generic/pg-assoc.el
parentd02f3d432aafdc9fe05dd2b71b71978c0bd21f57 (diff)
Experimenting smarter window creation when in three windows
mode. Strategy is: always try to split an associated buffer window.
Diffstat (limited to 'generic/pg-assoc.el')
-rw-r--r--generic/pg-assoc.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/generic/pg-assoc.el b/generic/pg-assoc.el
index ba987aeb..deb40e56 100644
--- a/generic/pg-assoc.el
+++ b/generic/pg-assoc.el
@@ -38,6 +38,14 @@ Some may be dead/nil."
proof-thms-buffer))
+(defun proof-associated-windows ()
+ "Return a list of the associated buffers windows.
+dead or nil buffers are not represented in the list."
+ (let ((lwin (mapcar '(lambda (b) (and b (get-buffer-window b)))
+ (proof-associated-buffers))))
+ (proof-list-filter lwin '(lambda (x) (not (null x))))
+ ))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Manipulating prover output