Skip to content

Commit

Permalink
Only use symbol-function on a symbol
Browse files Browse the repository at this point in the history
* zmq.el (zmq-start-process): Do it.
  • Loading branch information
nnicandro committed Jul 15, 2024
1 parent 23c981c commit 48b5771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zmq.el
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ argument of the function.
FILTER is a function that takes a single argument, a complete
s-expression read from the process' stdout. This means that care
should be taken when writing SEXP to ensure that it only prints
out lists. Anything other value that SEXP prints will be ignored.
out lists. Any other value that SEXP prints will be ignored.
SENTINEL has the same meaning as in `make-process'.
Expand All @@ -455,7 +455,7 @@ Emacs process."
(or debug (setq debug zmq--subprocess-debug))
(cond
((functionp sexp)
(unless (listp sexp)
(when (symbolp sexp)
(setq sexp (symbol-function sexp))))
(t (error "Can only send functions to processes")))
(cl-destructuring-bind (min . max) (func-arity sexp)
Expand Down

0 comments on commit 48b5771

Please sign in to comment.