diff options
| author | David Aspinall | 2005-09-21 19:57:44 +0000 |
|---|---|---|
| committer | David Aspinall | 2005-09-21 19:57:44 +0000 |
| commit | e8092d93658d14ac0915d33e4e90a6b90006c260 (patch) | |
| tree | 4026f157f683d5696294894bf1dac71fe89d0510 | |
| parent | fdf5ad46b2e2aabee385225f11f08b997a3a036a (diff) | |
Add command menu
| -rw-r--r-- | isar/isar.el | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/isar/isar.el b/isar/isar.el index f1c7a801..64135405 100644 --- a/isar/isar.el +++ b/isar/isar.el @@ -356,24 +356,37 @@ proof-shell-retract-files-regexp." (proof-definvisible isar-help-theorems "print_theorems" [h t]) (proof-definvisible isar-help-trans-rules "print_trans_rules" [h T]) +;; +;; Command menu +;; + ;; NB: would be nice to query save of the buffer first for these ;; next two: but only convenient emacs functions offer save for ;; all buffers. -(proof-definvisible isar-display-draft +(proof-definvisible isar-cmd-display-draft '(format "display_drafts \"%s\"" buffer-file-name) [(control d)]) -(proof-definvisible isar-print-draft +(proof-definvisible isar-cmd-print-draft '(if (y-or-n-p (format "Print draft of file %s ?" buffer-file-name)) (format "print_drafts \"%s\"" buffer-file-name) (error "Aborted.")) [(control p)]) +(proof-definvisible isar-cmd-refute "refute" [r]) +(proof-definvisible isar-cmd-quickcheck "quickcheck" [(control q)]) + (defpgdefault menu-entries (append (list isabelle-logics-menu) (list + (cons "Command ..." + (list + ["refute" isar-cmd-refute t] + ["quickcheck" isar-cmd-quickcheck t] + ["display draft" isar-cmd-display-draft t]))) + (list (cons "Show me ..." (list ["cases" isar-help-cases t] @@ -390,12 +403,7 @@ proof-shell-retract-files-regexp." ["attributes" isar-help-attributes t] ["commands" isar-help-commands t] ["inner syntax" isar-help-syntax t] - ["methods" isar-help-methods t]))) - (list - ;; FIXME: these are not defined until post Isabelle2004, - ;; for now we grey them out in the menu except for CVS version. - ["Display draft" isar-display-draft - (string-match "repository" isabelle-version-string)]))) + ["methods" isar-help-methods t]))))) ;; undo proof commands (defun isar-count-undos (span) |
