diff options
| author | Pierre Courtieu | 2020-10-16 09:14:11 +0200 |
|---|---|---|
| committer | Pierre Courtieu | 2020-10-16 17:31:52 +0200 |
| commit | 0fdb1ae633baeb9afb07bbd8632bece5976f95f2 (patch) | |
| tree | 1b65c8a70729ab6132a7cd8c9215a2ec4e40cab7 /coq/coq.el | |
| parent | eb6bba151b27f4d821088e10e1bda5cad0b70a28 (diff) | |
Fix #514 + support for named goal selector.
It was hard to separate this too fixes (same regexps).
Diffstat (limited to 'coq/coq.el')
| -rw-r--r-- | coq/coq.el | 19 |
1 files changed, 2 insertions, 17 deletions
@@ -457,20 +457,6 @@ This is a subroutine of `proof-shell-filter'." (pg-response-display-with-face strnotrailingspace))) ; face -;; Trying to accept { and } as terminator for empty commands. Actually -;; I am experimenting two new commands "{" and "}" (without no -;; trailing ".") which behave like BeginSubProof and EndSubproof. The -;; absence of a trailing "." makes it difficult to distinguish between -;; "{" of normal coq code (implicits, records) and this the new -;; commands. We therefore define a coq-script-parse-function to this -;; purpose. - -;; coq-end-command-regexp is ni coq-indent.el -(defconst coq-script-command-end-regexp coq-end-command-regexp) -;; "\\(?:[^.]\\|\\(?:\\.\\.\\)\\)\\.\\(\\s-\\|\\'\\)") - - - ;; slight modification of proof-script-generic-parse-cmdend (one of the ;; candidate for proof-script-parse-function), to allow "{" and "}" to be ;; command terminator when the command is empty. TO PLUG: swith the comment @@ -1913,7 +1899,8 @@ at `proof-assistant-settings-cmds' evaluation time.") ;; coq-mode colorize errors better than the generic mechanism (setq proof-script-color-error-messages nil) (setq proof-terminal-string ".") - (setq proof-script-command-end-regexp coq-script-command-end-regexp) + ;; superseded by coq-script-parse-function + ;;(setq proof-script-command-end-regexp coq-script-command-end-regexp) (setq proof-script-parse-function 'coq-script-parse-function) (setq proof-script-comment-start comment-start) (setq proof-script-comment-end comment-end) @@ -2783,8 +2770,6 @@ SPAN is the span of the whole theorem (statement + proof)." "Coq specific dependency mechanism. Used for automatic insertion of \"Proof using\" annotations.") -;::::::::::::: inserting suggested Proof using XXX... ;;;;;;;;;; - (defun coq-insert-as-in-next-command () (interactive) |
