skeeto / emacs-aio

async/await for Emacs Lisp
The Unlicense
215 stars 12 forks source link

aio-defun doesn't support declarations #12

Open phst opened 4 years ago

phst commented 4 years ago

For example, after

(aio-defun func ()
  (declare (obsolete ("foo"))))

C-h f func RET won't show that the function is obsolete. Applying declarations is done by the defun macro; probably aio-defun should wrap defun in the same way that iter-defun wraps defun.

skeeto commented 4 years ago

Yes, it would be nice to have this fixed.