aboutsummaryrefslogtreecommitdiff
path: root/coq/coq.el
diff options
context:
space:
mode:
authorPierre Courtieu2006-08-23 09:22:29 +0000
committerPierre Courtieu2006-08-23 09:22:29 +0000
commit2420f7174949c94384c8c436eb2aade7c4baa568 (patch)
tree5bc98ce7deeea4e65547980e870d429ec612216c /coq/coq.el
parent5a682f78cd647e5c836d5bc9e41f1e6be5a7e1b3 (diff)
Cleaning in coq and lib, fixed licenses and docstrings.
Added one or two details to docstring of generic variables.
Diffstat (limited to 'coq/coq.el')
-rw-r--r--coq/coq.el19
1 files changed, 3 insertions, 16 deletions
diff --git a/coq/coq.el b/coq/coq.el
index f00f885b..8feda42b 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -1,6 +1,7 @@
;;; coq.el --- Major mode for Coq proof assistant
;; Copyright (C) 1994 - 1998 LFCS Edinburgh.
;; Authors: Healfdene Goguen, Pierre Courtieu
+;; License: GPL (GNU GENERAL PUBLIC LICENSE)
;; Maintainer: Pierre Courtieu <Pierre.Courtieu@cnam.fr>
;; $Id$
@@ -30,13 +31,14 @@
;; On Windows with latest Coq package you might need something like:
;; "C:/Program Files/Coq/bin/coqtop.opt.exe"
;; instead of just "coqtop". See also coq-prog-env below.
- "*Name of program to run as Coq."
+ "*Name of program to run as Coq. Important: See `proof-prog-name'."
:type 'string
:group 'coq)
;; List of arguments to pass to Coq process. Should contain -emacs.
;; -translate will be added automatically to this list if `coq-translate-to-v8'
;; is set.
+;; coq-prog-args is set by defpgcustom in proof-config
(setq coq-prog-args '("-emacs"))
;; List of environment settings d to pass to Coq process.
@@ -1328,21 +1330,6 @@ positions."
)))))
-(defun coq-insert-from-db (db)
- "Ask for a keyword, with completion on list DB tactics and insert
-corresponding string with holes at point. If a insertion function is presnet
-for the keyword, call it instead."
- (let* ((tac (completing-read "tactic (tab for completion) : "
- db nil nil))
- (infos (cddr (assoc tac db)))
- (s (car infos)) ; completion to insert
- (f (car-safe (cdr-safe (cdr-safe (cdr infos))))) ; insertion function
- (pt (point)))
- (if f (funcall f) ; call f if present
- (insert (or s tac)) ; insert completion and indent otherwise
- (holes-replace-string-by-holes-backward-jump pt)
- (indent-according-to-mode))))
-
(defun coq-insert-tactic ()
"Ask for a tactic name, with completion on a quasi-exhaustive list of coq