(server-process-filter): Wrap `process-send-region'
by `condition-case' to guard the case when the pipe to PROC is closed.
This commit is contained in:
parent
7ff2aa3963
commit
9afed9b1fa
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-10-09 Masatake YAMATO <jet@gyve.org>
|
||||
|
||||
* server.el (server-process-filter): Wrap `process-send-region'
|
||||
by `condition-case' to guard the case when the pipe to PROC is
|
||||
closed.
|
||||
|
||||
2004-10-07 Mark A. Hershberger <mah@everybody.org>
|
||||
|
||||
* xml.el (xml-substitute-special): Limit handling of external
|
||||
|
|
|
@ -343,7 +343,11 @@ PROC is the server process. Format of STRING is \"PATH PATH PATH... \\n\"."
|
|||
(with-temp-buffer
|
||||
(let ((standard-output (current-buffer)))
|
||||
(pp v)
|
||||
(process-send-region proc (point-min) (point-max))))))
|
||||
;; Suppress the error rose when the pipe to PROC is closed.
|
||||
(condition-case err
|
||||
(process-send-region proc (point-min) (point-max))
|
||||
(file-error nil))
|
||||
))))
|
||||
;; ARG is a file name.
|
||||
;; Collapse multiple slashes to single slashes.
|
||||
(setq arg (command-line-normalize-file-name arg))
|
||||
|
|
Loading…
Add table
Reference in a new issue