]> git.eshelyaron.com Git - dict.git/commitdiff
FIXED: really initialize on load
authorEshel Yaron <me@eshelyaron.com>
Sat, 27 Aug 2022 07:09:42 +0000 (10:09 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 27 Aug 2022 07:09:42 +0000 (10:09 +0300)
sweep.el

index 5e8791f53f848f2e0c8d739b6e199e5f97c2c3eb..72bd95a77faca9659c16946b74eb77f230694340 100644 (file)
--- a/sweep.el
+++ b/sweep.el
   (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")