From: Eshel Yaron Date: Sat, 27 Aug 2022 07:09:42 +0000 (+0300) Subject: FIXED: really initialize on load X-Git-Tag: v0.2.0~98 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=38edf9e3f2c8b7eb45ed68ab1d811f3583ac02e8;p=dict.git FIXED: really initialize on load --- 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")