From 029e2cb1fd07867d656090693ee7d71a32fa42a4 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Fri, 7 Oct 2022 12:01:05 +0300 Subject: [PATCH] Use sweep.pl from the ELPA package rather than from SWI-Prolog --- CMakeLists.txt | 3 +-- README.org | 4 ++-- sweeprolog.el | 7 ++++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 303b2d0..fa4e669 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,8 +16,7 @@ if(EMACS_INCLUDE_DIR) swipl_plugin( sweep-module C_SOURCES sweep.c - C_INCLUDE_DIR ${EMACS_INCLUDE_DIR} - PL_LIBS sweep.pl) + C_INCLUDE_DIR ${EMACS_INCLUDE_DIR}) pkg_doc( sweep diff --git a/README.org b/README.org index 9f0031a..98519a6 100644 --- a/README.org +++ b/README.org @@ -1024,8 +1024,8 @@ Changes in the Elisp library =sweeprolog.el= do not require rebuilding SWI-Prolog, and can be applied and tested directly inside Emacs (see [[info:emacs#Lisp Eval][Evaluating Elisp in the Emacs manual]]). -Most often rebuilding SWI-Prolog after changing =sweep.c= and/or -=sweep.pl= can be achieved with the following command executed in +Most often rebuilding SWI-Prolog after changing =sweep.c= can be +achieved with the following command executed in =swipl-devel/packages/sweep=: #+begin_src sh diff --git a/sweeprolog.el b/sweeprolog.el index 72501af..6f071f1 100644 --- a/sweeprolog.el +++ b/sweeprolog.el @@ -150,10 +150,11 @@ inserted to the input history in `sweeprolog-top-level-mode' buffers." (defcustom sweeprolog-init-args (list "-q" "--no-signals" - "-g" - "[library(sweep)]") + (expand-file-name + "sweep.pl" + (file-name-directory load-file-name))) "List of strings used as initialization arguments for Prolog." - :package-version '((sweeprolog "0.3.1")) + :package-version '((sweeprolog "0.5.2")) :type '(repeat string) :group 'sweeprolog) -- 2.39.2