From 38edf9e3f2c8b7eb45ed68ab1d811f3583ac02e8 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 27 Aug 2022 10:09:42 +0300 Subject: [PATCH] FIXED: really initialize on load --- sweep.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sweep.el b/sweep.el index 5e8791f..72bd95a 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") -- 2.39.2