diff options
author | 2002-08-07 11:32:34 +0000 | |
---|---|---|
committer | 2002-08-07 11:32:34 +0000 | |
commit | d1d1bb5cbb854ac0661ace5743b85e5ffd59e084 (patch) | |
tree | e3ac83117323481753f1f76622f68a964aaabc05 /generic/proof-shell.el | |
parent | cdd4c5d78b0ef792ae6d43f98a54b8813bcfb5fa (diff) |
Add proof-shell-strip-crs-from-output
Diffstat (limited to 'generic/proof-shell.el')
-rw-r--r-- | generic/proof-shell.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/generic/proof-shell.el b/generic/proof-shell.el index f1268ca3..30d1a68a 100644 --- a/generic/proof-shell.el +++ b/generic/proof-shell.el @@ -1380,6 +1380,14 @@ correspond with initializing the process. The ordinary output before the first prompt is ignored (urgent messages, however, are always processed; hence their name)." (save-excursion + ;; Strip CRs. + (if proof-shell-strip-crs-from-output + (progn + (setq str (replace-regexp-in-string "\r+$" "" str)) + ;; Do the same thing in the buffer via comint's function + ;; (sometimes put on comint-output-filter-functions too). + (comint-strip-ctrl-m))) + ;; Process urgent messages. (and proof-shell-eager-annotation-start (proof-shell-process-urgent-messages)) |