aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-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