-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aio-defun can't be autoloaded #3
Comments
That's a good point. I can't figure out how to address this, though. It
looks like autoload needs to know about the s-exp following the autoload
cookie so that it can process it properly. It of course doesn't know
about aio-defun, but, unfortunately, it looks like there's no way to
teach autoload about it. The list of "function-like operators" is
hardcoded in autoloads.el and so is not extensible.
If I'm reading it correctly, it actually macro-expands aio-defun and
sees the defalias. Then it looks at the second argument to defalias and
sees aio-lambda. However, I *think* it does not macro-expand this
further, and since it doesn't recognize aio-lambda, it doesn't generate
the correct autoload.
|
In this case, I think you can just teach the autoload about what to autoload ;;;###autoload(autoload 'foo "bar" "" t nil)
(aio-defun foo ()
(interactive)) |
Thank you, it worked perfectly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems
aio-defun
can't be autoloded likedefun
,;;;###autoload
doesn't work.The text was updated successfully, but these errors were encountered: