aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic/proof-toolbar.el
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>1999-11-19 19:05:23 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>1999-11-19 19:05:23 +0000
commitf77885f7bffe5ff94c5603965d2033cc131a4e0a (patch)
tree8684720ae118e94f2bea65ee9f3980d1cb9535b3 /generic/proof-toolbar.el
parentb4de46b4116c361e3fbe9149c4e9666dd24457c3 (diff)
Added goto button
Diffstat (limited to 'generic/proof-toolbar.el')
-rw-r--r--generic/proof-toolbar.el24
1 files changed, 17 insertions, 7 deletions
diff --git a/generic/proof-toolbar.el b/generic/proof-toolbar.el
index 0dc3a630..f8431e18 100644
--- a/generic/proof-toolbar.el
+++ b/generic/proof-toolbar.el
@@ -47,6 +47,7 @@
(goal "Start a new proof" "Start a new proof" t)
(retract "Retract buffer" "Retract (undo) whole buffer" t)
(undo "Undo step" "Undo the previous proof command" t)
+ (goto "Goto point" "Process or undo to the cursor position" t)
(next "Next step" "Process the next proof command" t)
(use "Use buffer" "Process whole buffer" t)
(restart "Restart scripting" "Restart scripting (clear all locked regions)" t)
@@ -284,6 +285,21 @@ changed state."
;;
+;; Goto button
+;;
+
+(defun proof-toolbar-goto-enable-p ()
+ t) ;; we don't want to update the toolbar on every movement of point
+; (and
+; (not (equal (point) (proof-locked-end))) ; bug in powtlrp
+; (or
+; (< (point) (proof-locked-end))
+; (not (proof-only-whitespace-to-locked-region-p)))))
+
+(defalias 'proof-toolbar-goto 'proof-goto-point)
+
+
+;;
;; Retract button
;;
@@ -435,18 +451,12 @@ changed state."
(defconst proof-toolbar-scripting-menu
;; Toolbar contains commands to manipulate script and
- ;; other handy stuff. Called "Scripting"
+ ;; other handy stuff.
(apply 'append
(mapcar 'proof-toolbar-make-menu-item
proof-toolbar-entries))
"Menu made from the Proof General toolbar commands.")
-;;
-;; Add this menu to proof-menu
-;;
-; (setq proof-menu
-; (append proof-menu (list proof-toolbar-menu)))
-
;;
(provide 'proof-toolbar)