From b05c63a3d22b12652145cbe43ca5c94a9f8e58e7 Mon Sep 17 00:00:00 2001 From: "Ryan C. Thompson" Date: Sun, 17 Nov 2013 18:52:25 -0800 Subject: [PATCH] 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 file changed, 1 insertion(+), 2 deletions(-) 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 "" -- 2.39.2