Function: jsonrpc--event

jsonrpc--event is a byte-compiled function defined in jsonrpc.el.gz.

Signature

(jsonrpc--event CONNECTION ORIGIN &rest PLIST &key KIND JSON MESSAGE FOREIGN-MESSAGE LOG-TEXT &allow-other-keys)

Source Code

;; Defined in /usr/src/emacs/lisp/jsonrpc.el.gz
(cl-defun jsonrpc--event (connection
                          origin
                          &rest plist
                          &key _kind _json _message _foreign-message _log-text
                          &allow-other-keys)
  (with-current-buffer (jsonrpc-events-buffer connection)
    (run-hook-wrapped 'jsonrpc-event-hook
                      (lambda (fn)
                        (condition-case oops
                            (apply fn connection origin plist)
                          (error
                           (jsonrpc--message "event hook '%s' errored (%s).  Removing it"
                                             fn oops)
                           (remove-hook 'jsonrpc-event-hook fn)))))))