jwiegley / emacs-async

Simple library for asynchronous processing in Emacs
GNU General Public License v3.0
829 stars 68 forks source link

Symbol's function definition is void when using async-let #143

Closed clayscode closed 2 years ago

clayscode commented 2 years ago

When I try to define a function and pass it to async-let, I get the error Symbol's function definition is void: func-name

For Example:

(async-let ((x (* 2 3)))
  (print x))

Returns 6

(defun mult (a b)
  (* a b))

(async-let ((x (mult 2 3)))
  (print x))

This throws Symbol's function definition is void: mult

Am I using this function wrong, or is this a bug?

clayscode commented 2 years ago

https://github.com/jwiegley/emacs-async/issues/122 ah didn't realize you need to inject functions. Closing this, sorry!