aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2006-02-14 16:09:21 +0000
committerDavid Aspinall2006-02-14 16:09:21 +0000
commit9b6a1406ab83c50df29933b8061b53d060b45e96 (patch)
treef56199e00a912807ab67768e191e342c54c61152
parentc497203b11d13fd162bc371caec135056b3bb741 (diff)
Revert use of 'raw-text for coding-system-for-read/write since it changes behaviour in at least one Emacs version, causing PG to hang.
-rw-r--r--generic/proof-shell.el13
1 files changed, 11 insertions, 2 deletions
diff --git a/generic/proof-shell.el b/generic/proof-shell.el
index c86c9dea..b42cb310 100644
--- a/generic/proof-shell.el
+++ b/generic/proof-shell.el
@@ -326,8 +326,17 @@ Does nothing if proof assistant is already running."
;; end-of-line conversion (hence `raw-text').
;; It is also the only sensible choice since we make the buffer
;; unibyte below.
- (coding-system-for-read (if proof-shell-unicode 'utf-8 'raw-text))
- (coding-system-for-write (if proof-shell-unicode 'utf-8 'raw-text)))
+ (coding-system-for-read
+ (if proof-shell-unicode 'utf-8
+ ;; was: 'raw-text
+ ;; da: Unfortunately 'raw-text causes hangs with some Emacs,
+ ;; since we get something not as raw as it was otherwise;
+ ;; so leave it as it is, please
+ coding-system-for-read))
+ (coding-system-for-write
+ (if proof-shell-unicode 'utf-8
+ ;; was: 'raw-text
+ coding-system-for-write)))
;; An improvement here might be to catch failure of
;; make-comint and then kill off the buffer. Then we