aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic/proof-toolbar.el
diff options
context:
space:
mode:
authorGravatar Thomas Kleymann <da+pg-tms@inf.ed.ac.uk>1998-10-18 14:18:26 +0000
committerGravatar Thomas Kleymann <da+pg-tms@inf.ed.ac.uk>1998-10-18 14:18:26 +0000
commitbb0b35e13e222ceffee83d49ec676c8b88c51966 (patch)
tree1929a06b10b381177b030e9a3f983f437e2fabe6 /generic/proof-toolbar.el
parentd6501c39e4975a1b34b145a21602b9fb99202e3d (diff)
relaxed conditions in light of new multiple files support
Diffstat (limited to 'generic/proof-toolbar.el')
-rw-r--r--generic/proof-toolbar.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/proof-toolbar.el b/generic/proof-toolbar.el
index 916ba661..ad8928b0 100644
--- a/generic/proof-toolbar.el
+++ b/generic/proof-toolbar.el
@@ -204,9 +204,7 @@ Checks based on those in proof-check-process-available, but
without giving error messages."
(and (eq proof-buffer-type 'script)
(proof-shell-live-buffer)
- (not proof-shell-busy)
- ;; this last check is wrong for pbp buffer!
- (eq (car proof-script-buffer-list) (current-buffer))))
+ (not proof-shell-busy)))
(defun proof-toolbar-undo-enable-p ()
(and (proof-toolbar-process-available-p)
@@ -237,7 +235,8 @@ Move point if the end of the locked position is invisible."
(proof-goto-end-of-locked-if-pos-not-visible-in-window))
(defun proof-toolbar-retract-enable-p ()
- (proof-toolbar-process-available-p))
+ (and (proof-toolbar-process-available-p)
+ (member (current-buffer) proof-script-buffer-list)))
(defun proof-toolbar-retract ()
"Retract buffer."