From: Ryan C. Thompson Date: Mon, 18 Nov 2013 02:52:25 +0000 (-0800) Subject: Don't rely on async.el being in load-path. X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/b05c63a3d22b12652145cbe43ca5c94a9f8e58e7 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. --- diff --git a/async.el b/async.el index 4c79816d4..f22f90018 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 ""