evaluation of the argument.
+2006-03-04 Andreas Schwab <schwab@suse.de>
+
+ * server.el (server-process-filter): Handle errors during
+ evaluation of the argument.
+
2006-03-03 John Paul Wallington <jpw@pobox.com>
* t-mouse.el (t-mouse-drag-start, t-mouse-swap-alt-keys): Doc fix;
(if coding-system
(setq arg (decode-coding-string arg coding-system)))
(if eval
- (let ((v (eval (car (read-from-string arg)))))
+ (let* (errorp
+ (v (condition-case errobj
+ (eval (car (read-from-string arg)))
+ (error (setq errorp t) errobj))))
(when v
(with-temp-buffer
(let ((standard-output (current-buffer)))
+ (if errorp (princ "error: "))
(pp v)
;; Suppress the error rose when the pipe to PROC is closed.
(condition-case err