diff options
author | Pierre Courtieu <courtieu@lri.fr> | 2003-01-30 20:08:19 +0000 |
---|---|---|
committer | Pierre Courtieu <courtieu@lri.fr> | 2003-01-30 20:08:19 +0000 |
commit | 05a120275c557e95c73c7c2bdd1e2725197d3bd0 (patch) | |
tree | bf821d1442a08211cc7abbcb059f6ab5d579d15a /coq | |
parent | d4b3bb61d84cb2cd831a43b65dc55ef25fa8abaa (diff) |
Bug correction in the find-and-forget function for coq: in Coq v74, no
prompt is return if an empty command is send ("\n"), so if the command
is empty, we send proof-no-command (if not, backtracking state
preserving command stays indefinitely in "proof process busy" state).
Diffstat (limited to 'coq')
-rw-r--r-- | coq/coq.el | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -378,9 +378,12 @@ toplevel \"Coq <\". Returns nil if yes. This assumes that no (if (> nundos 0) (concat "Undo " (int-to-string nundos) ". ")))) - (if (null ans) - proof-no-command;; FIXME: this is an error really (assert nil) - ans))) + (if (null ans) proof-no-command;; FIXME: this is an error really (assert nil); + (if (string-equal ans "") proof-no-command ; not here because if + ; we backtrack a state preserving command, we must do + ; *nothing*, not even a CR (in v74, no prompt is returned + ; with "\n") + ans)))) (defvar coq-current-goal 1 @@ -571,6 +574,7 @@ This is specific to coq-mode." " -emacs")) coq-prog-name))) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Coq shell startup and exit hooks ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |