branch: elpa/sweeprolog commit 38edf9e3f2c8b7eb45ed68ab1d811f3583ac02e8 Author: Eshel Yaron <m...@eshelyaron.com> Commit: Eshel Yaron <m...@eshelyaron.com>
FIXED: really initialize on load --- sweep.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sweep.el b/sweep.el index 5e8791f53f..72bd95a77f 100644 --- a/sweep.el +++ b/sweep.el @@ -42,14 +42,15 @@ (if (y-or-n-p "Sweep needs `sweep-module' to work. Compile it now? ") (progn (sweep-module-compile) - (require 'sweep-module) - (sweep-initialize (expand-file-name "bin/swipl" - (sweep-home-directory)) - "-q" - (expand-file-name "sweep.pl" - (sweep-home-directory)))) + (require 'sweep-module)) (error "Sweep will not work until `sweep-module' is compiled!"))) +(sweep-initialize (expand-file-name "bin/swipl" + (sweep-home-directory)) + "-q" + (expand-file-name "sweep.pl" + (sweep-home-directory))) + (declare-function sweep-initialize "sweep-module") (declare-function sweep-initialized-p "sweep-module") (declare-function sweep-open-query "sweep-module")