Skip to content

Commit

Permalink
zmq--init-subprocess: Make the eval debuggable by the parent process
Browse files Browse the repository at this point in the history
  • Loading branch information
nnicandro committed May 15, 2023
1 parent 8bd03b1 commit 4f31ffa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions zmq.el
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,13 @@ debugging purposes."
(with-temp-buffer
(let ((standard-output (current-buffer)))
(backtrace))
(buffer-string))))))
(sexp (eval (zmq-subprocess-read)))
(wrap-context (= (length (cadr sexp)) 1)))
(buffer-string)))))))
(condition-case err
(if wrap-context
(funcall sexp (zmq-current-context))
(funcall sexp))
(let* ((sexp (eval (zmq-subprocess-read)))
(wrap-context (= (length (cadr sexp)) 1)))
(if wrap-context
(funcall sexp (zmq-current-context))
(funcall sexp)))
(error
(zmq-prin1 (cons 'error (list (car err)
(or zmq-backtrace
Expand Down

0 comments on commit 4f31ffa

Please sign in to comment.