From 7d516f2126b892df3b02b59045eacbef54f16656 Mon Sep 17 00:00:00 2001 From: Nathaniel Nicandro Date: Fri, 12 Jan 2018 18:07:39 -0600 Subject: [PATCH] No need for `apply-partially` --- jupyter-client.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/jupyter-client.el b/jupyter-client.el index 8068e51..5fefcbb 100644 --- a/jupyter-client.el +++ b/jupyter-client.el @@ -609,12 +609,9 @@ run when MSG-TYPE is received for REQ." (let ((cb-for-type (assoc msg-type callbacks))) (if (not cb-for-type) (nconc callbacks (list (cons msg-type cb))) - (setq cb (apply-partially - (lambda (cb1 cb2 msg) - (funcall cb1 msg) - (funcall cb2 msg)) - (cdr cb-for-type) - cb)) + (setq cb (lambda (msg) + (funcall cb-for-type msg) + (funcall cb msg))) (setcdr cb-for-type cb)))))) (defun jupyter-add-callback (req msg-type cb &rest callbacks)