@@ -182,16 +182,17 @@ publisher providing content."
182182(define-error 'jupyter-publisher-subscribers-had-errors
183183 " Publisher's subscribers had errors" )
184184
185- (defun jupyter-pseudo-bind -content (pub-fn content subs )
185+ (defun jupyter-distribute -content (pub-fn content subs )
186186 " Apply PUB-FN on submitted CONTENT to produce published content.
187187Call each subscriber in SUBS on the published content. Remove
188188those subscribers that cancel their subscription.
189189
190190When a subscriber signals an error it is noted and the remaining
191191subscribers are processed. After processing all subscribers, a
192- `jupyter-publisher-errors' error is raised with the data being
193- the list of errors raised when calling subscribers. Note, when a
194- subscriber errors, it remains in the list of subscribers."
192+ `jupyter-publisher-subscribers-had-errors' error is raised with
193+ the data being the list of errors raised when calling
194+ subscribers. Note, when a subscriber errors, it remains in the
195+ list of subscribers."
195196 (pcase (funcall pub-fn content)
196197 ((and `(content , _ ) sub-content)
197198 ; ; NOTE: The first element of SUBS is ignored here so that the
@@ -269,7 +270,7 @@ Ex. Publish \='app if \='app is given to a publisher, nothing is sent
269270 ; ; or a value representing content to send to subscribers.
270271 (lambda (pub-value )
271272 (pcase (car-safe pub-value)
272- ('content (jupyter-pseudo-bind -content pub-fn (cadr pub-value) subs))
273+ ('content (jupyter-distribute -content pub-fn (cadr pub-value) subs))
273274 ('subscribe (cl-pushnew (cadr pub-value) (cdr subs)))
274275 (_ (error " Unhandled publisher content: %s " pub-value))))))
275276
0 commit comments