aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic/proof-toolbar.el
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2001-08-01 16:13:49 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2001-08-01 16:13:49 +0000
commit851569fdffc800e0480fafe1e8760a0ff21abb41 (patch)
treea9c836cfa971a42c2d7d3aa7faaba4b2550592a2 /generic/proof-toolbar.el
parent0f32001385dcba8dccd51e0ad86aaf35d5af07a3 (diff)
Revert to removing and re-adding specifiers for toolbar,
so that enablers work at least as well as they did before...
Diffstat (limited to 'generic/proof-toolbar.el')
-rw-r--r--generic/proof-toolbar.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/generic/proof-toolbar.el b/generic/proof-toolbar.el
index 6b3a92db..6458374e 100644
--- a/generic/proof-toolbar.el
+++ b/generic/proof-toolbar.el
@@ -231,6 +231,13 @@ changed state."
(not (equal enabler-state proof-toolbar-enablers-last-state))
(progn
(setq proof-toolbar-enablers-last-state enabler-state)
+ ;; The official way to do this should be
+ ;; (set-specifier-dirty-flag default-toolbar)
+ ;; but it doesn't work, so we do what VM does instead,
+ ;; removing and re-adding.
+ (remove-specifier default-toolbar buf)
+ (set-specifier default-toolbar proof-toolbar buf)
+ ;; We set the dirty flag as well just in case it helps...
(set-specifier-dirty-flag default-toolbar)
(setq proof-toolbar-refresh-flag nil))))
;; Kill off this itimer if it's owning buffer has died