branch: master
commit b05c63a3d22b12652145cbe43ca5c94a9f8e58e7
Author: Ryan C. Thompson <[email protected]>
Commit: Ryan C. Thompson <[email protected]>
Don't rely on async.el being in load-path.
This uses "symbol-file" instead of "find-library-name" to figure out
where async.el is. This works even if async.el was loaded without adding
its directory to the load-path.
Fixes #15.
---
async.el | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/async.el b/async.el
index 4c79816..f22f900 100644
--- a/async.el
+++ b/async.el
@@ -268,8 +268,7 @@ returns nil. It can still be useful, however, as an
argument to
(expand-file-name invocation-name
invocation-directory))
,finish-func
- "-Q" "-l" ,(funcall (symbol-function 'find-library-name)
- "async")
+ "-Q" "-l" ,(symbol-file 'async-batch-invoke 'defun)
"-batch" "-f" "async-batch-invoke"
(if async-send-over-pipe
"<none>"