diff options
author | 2006-08-16 17:46:10 +0000 | |
---|---|---|
committer | 2006-08-16 17:46:10 +0000 | |
commit | 6631d821b2fcb2f5c07255abbcce1d0dfa80e709 (patch) | |
tree | c062729c2eb0638885e2c9111939b9e6debfc280 /generic/proof-shell.el | |
parent | 13f4813f3f706b5701d9d923847139f1570fe808 (diff) |
Fixed messages of prover process starting and errors in order to have
prog-args shown. It was confusing for users not to see what arguments
was given to the prover.
Diffstat (limited to 'generic/proof-shell.el')
-rw-r--r-- | generic/proof-shell.el | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/generic/proof-shell.el b/generic/proof-shell.el index 4123be42..64b5b275 100644 --- a/generic/proof-shell.el +++ b/generic/proof-shell.el @@ -282,7 +282,8 @@ Does nothing if proof assistant is already running." (let ((proc (downcase proof-assistant))) - (message "Starting process: %s" proof-prog-name) +;pc: not showing the prog-args is confusing, right message is showed below +; (message "Starting process: %s" proof-prog-name) ;; Starting the inferior process (asynchronous) (let* ((prog-name-list1 @@ -297,6 +298,8 @@ Does nothing if proof assistant is already running." (> (length proof-rsh-command) 0)) (cons proof-rsh-command prog-name-list1) prog-name-list1)) + (prog-command-line + (proof-splice-separator " " prog-name-list)) (process-connection-type proof-shell-process-connection-type) @@ -346,24 +349,25 @@ Does nothing if proof assistant is already running." (coding-system-for-write coding-system-for-read)) + (message "Starting process: %s" prog-command-line) + ;; An improvement here might be to catch failure of ;; make-comint and then kill off the buffer. Then we ;; could add back code above for multiple shells <2> <3>, etc. ;; Seems hardly worth it. (apply 'make-comint (append (list proc (car prog-name-list) nil) (cdr prog-name-list))) - ;(message (append (list proc (car prog-name-list) nil) (cdr prog-name-list))) - ) - (setq proof-shell-buffer (get-buffer (concat "*" proc "*"))) + (setq proof-shell-buffer (get-buffer (concat "*" proc "*"))) - (unless (proof-shell-live-buffer) - ;; Give error now if shell buffer isn't live - ;; Solves problem of make-comint succeeding but process - ;; exiting immediately. - ;; Might still be problems here if sentinels are set. - (setq proof-shell-buffer nil) - (error "Starting process: %s..failed" proof-prog-name)) + (unless (proof-shell-live-buffer) + ;; Give error now if shell buffer isn't live + ;; Solves problem of make-comint succeeding but process + ;; exiting immediately. + ;; Might still be problems here if sentinels are set. + (setq proof-shell-buffer nil) + (error "Starting process: %s..failed" prog-command-line)) + ) ;; Create the associated buffers and set buffer variables ;; |