aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2006-03-04 16:07:12 +0000
committerAndreas Schwab2006-03-04 16:07:12 +0000
commitc6ce06a6d800dd5c5772a024998690ac952fffe6 (patch)
treee979a3b874e7a37d1b897d612cb14e10fc279eda
parentda92726901b0a73ada40c386c01f95fd1723e97e (diff)
downloademacs-c6ce06a6d800dd5c5772a024998690ac952fffe6.tar.gz
emacs-c6ce06a6d800dd5c5772a024998690ac952fffe6.zip
(server-process-filter): Handle errors during
evaluation of the argument.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/server.el6
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 61808a4c423..57fb4486ee0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-03-04 Andreas Schwab <schwab@suse.de>
2
3 * server.el (server-process-filter): Handle errors during
4 evaluation of the argument.
5
12006-03-03 John Paul Wallington <jpw@pobox.com> 62006-03-03 John Paul Wallington <jpw@pobox.com>
2 7
3 * t-mouse.el (t-mouse-drag-start, t-mouse-swap-alt-keys): Doc fix; 8 * t-mouse.el (t-mouse-drag-start, t-mouse-swap-alt-keys): Doc fix;
diff --git a/lisp/server.el b/lisp/server.el
index 4d461876e30..befcd22ad3a 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -343,10 +343,14 @@ PROC is the server process. Format of STRING is \"PATH PATH PATH... \\n\"."
343 (if coding-system 343 (if coding-system
344 (setq arg (decode-coding-string arg coding-system))) 344 (setq arg (decode-coding-string arg coding-system)))
345 (if eval 345 (if eval
346 (let ((v (eval (car (read-from-string arg))))) 346 (let* (errorp
347 (v (condition-case errobj
348 (eval (car (read-from-string arg)))
349 (error (setq errorp t) errobj))))
347 (when v 350 (when v
348 (with-temp-buffer 351 (with-temp-buffer
349 (let ((standard-output (current-buffer))) 352 (let ((standard-output (current-buffer)))
353 (if errorp (princ "error: "))
350 (pp v) 354 (pp v)
351 ;; Suppress the error rose when the pipe to PROC is closed. 355 ;; Suppress the error rose when the pipe to PROC is closed.
352 (condition-case err 356 (condition-case err