Commit c8bf09ed authored by Christopher Wellons's avatar Christopher Wellons Committed by Stefan Monnier

* lisp/mail/hashcash.el: Get rid of backquoted lambdas

Copyright-paperwork-exempt: yes

(hashcash-generate-payment-async): η-reduce.
(hashcash-insert-payment-async): Use proper closure.
parent 3ec05e1c
Pipeline #988 failed with stage
in 49 minutes and 23 seconds
......@@ -182,8 +182,7 @@ Return immediately. Call CALLBACK with process and result when ready."
(setq hashcash-process-alist (cons
(cons process (current-buffer))
hashcash-process-alist))
(set-process-filter process `(lambda (process output)
(funcall ,callback process output))))
(set-process-filter process callback))
(funcall callback nil nil)))
(defun hashcash-check-payment (token str val)
......@@ -244,8 +243,8 @@ Only start calculation. Results are inserted when ready."
(hashcash-generate-payment-async
(hashcash-payment-to arg)
(hashcash-payment-required arg)
`(lambda (process payment)
(hashcash-insert-payment-async-2 ,(current-buffer) process payment)))))
(lambda (process payment)
(hashcash-insert-payment-async-2 (current-buffer) process payment)))))
(defun hashcash-insert-payment-async-2 (buffer process pay)
(when (buffer-live-p buffer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment