diff options
| author | David Aspinall | 2002-11-14 00:40:52 +0000 |
|---|---|---|
| committer | David Aspinall | 2002-11-14 00:40:52 +0000 |
| commit | b281a871556de5b237ce70290277e8f29017dbb3 (patch) | |
| tree | 4b41e6a38e42896cdfe327818b5531f4c0ed083a | |
| parent | afb5f604d127b08cad402b397e3c4597c436742d (diff) | |
Tweak calling of pg-pgip processing commands.
| -rw-r--r-- | generic/proof-shell.el | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/generic/proof-shell.el b/generic/proof-shell.el index fdf9259c..a6b33f6c 100644 --- a/generic/proof-shell.el +++ b/generic/proof-shell.el @@ -1260,9 +1260,21 @@ MESSAGE should be a string annotated with (string-match proof-shell-match-pgip-cmd message)) (require 'pg-xml) (require 'pg-pgip) + (unless (string-match (match-string 0) + proof-shell-eager-annotation-start) + ;; Assume that eager annotation regexps are _not_ part of PGIP + ;; message, and strip them. This allows hybrid PGIP/non PGIP + ;; communication, with PGIP embedded in urgent messages. + (setq message + (substring + message + (progn + (string-match proof-shell-eager-annotation-start message) + (match-end 0)) + (string-match proof-shell-eager-annotation-end message)))) (let ((parsed-pgip (pg-xml-parse-string message))) - (pg-pgip-process-cmd parsed-pgip))) + (pg-pgip-process-packet parsed-pgip))) ;; CASE theorem dependency: prover lists thms used in last proof ((and proof-shell-theorem-dependency-list-regexp |
