diff options
| author | David Aspinall | 2010-10-04 13:45:13 +0000 |
|---|---|---|
| committer | David Aspinall | 2010-10-04 13:45:13 +0000 |
| commit | 5422a70fbdcabab9436bd27310a47e55a99ad3fc (patch) | |
| tree | af9202949bf79ecf72e83e3c0a02473296eb60fe | |
| parent | 7d4c93021e12f7c83c05f72c52af3e3e0e3c2318 (diff) | |
coq-insert-solve-tactic: added (credit:Erik Martin-Dorel, patch from trac #357). Docstring cleanups.
| -rw-r--r-- | coq/coq.el | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -1167,27 +1167,31 @@ Also insert holes at insertion positions." (substitute-command-keys "\\[holes-set-point-next-hole-destroy] to jump to active hole. \\[holes-short-doc] to see holes doc.")))))))))) +(defun coq-insert-solve-tactic () + "Ask for a closing tactic name, with completion, and insert at point. +Completion is on a quasi-exhaustive list of Coq closing tactics." + (interactive) + (coq-insert-from-db coq-solve-tactics-db "Closing tactic")) + (defun coq-insert-tactic () - "Ask for a tactic name, with completion on a quasi-exhaustive list of coq -tactics and insert it at point. Questions may be asked to the user." + "Insert a tactic name at point, with completion. +Questions may be asked to the user to select the tactic." (interactive) (coq-insert-from-db coq-tactics-db "Tactic")) (defun coq-insert-tactical () - "Ask for a tactical name, with completion on a quasi-exhaustive list of coq -tacticals and insert it at point. Questions may be asked to the user." + "Ask for a closing tactic name, with completion, and insert at point. +Completion is on a quasi-exhaustive list of Coq tacticals." (interactive) (coq-insert-from-db coq-tacticals-db "Tactical")) (defun coq-insert-command () - "Ask for a command name, with completion on a quasi-exhaustive list of coq -commands and insert it at point. Questions may be asked to the user." + "Ask for a command name, with completion, and insert it at point." (interactive) (coq-insert-from-db coq-commands-db "Command")) (defun coq-insert-term () - "Ask for a term kind, with completion and insert it at point. Questions may -be asked to the user." + "Ask for a term kind, with completion, and insert it at point." (interactive) (coq-insert-from-db coq-terms-db "Kind of term")) @@ -1201,6 +1205,9 @@ be asked to the user." (define-key coq-keymap [(control ?r)] 'proof-store-response-win) (define-key coq-keymap [(control ?G)] 'proof-store-goals-win) +;(define-key coq-keymap [(control ?!)] 'coq-insert-solve-tactic) +(define-key coq-keymap [?!] 'coq-insert-solve-tactic) ; will work in tty + (define-key coq-keymap [(control ?\s)] 'coq-insert-term) (define-key coq-keymap [(control return)] 'coq-insert-command) |
