[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sweeprolog 6434715829 149/166: FIXED: use a more robust me
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sweeprolog 6434715829 149/166: FIXED: use a more robust mechanism for finding sweep-module |
Date: |
Fri, 30 Sep 2022 04:59:34 -0400 (EDT) |
branch: elpa/sweeprolog
commit 6434715829b7044081f319cd260dedef7135991b
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>
FIXED: use a more robust mechanism for finding sweep-module
---
sweep.el | 21 ++++++++++-----------
sweep.pl | 9 ++++++++-
2 files changed, 18 insertions(+), 12 deletions(-)
diff --git a/sweep.el b/sweep.el
index 7ba846beb1..8ba8cabf0c 100644
--- a/sweep.el
+++ b/sweep.el
@@ -138,17 +138,16 @@ inserted to the input history in `sweep-top-level-mode'
buffers."
(declare-function sweep-cleanup "sweep-module")
(defun sweep--ensure-module ()
- (let ((swipl-lib-dir (car
- (split-string-and-unquote
- (shell-command-to-string
- (concat
- (or sweep-swipl-path (executable-find "swipl"))
- " --dump-runtime-variables |"
- " grep PLLIBDIR |"
- " cut -f 2 -d = |"
- " cut -f 1 -d ';'"))))))
- (load (expand-file-name "sweep-module" swipl-lib-dir))))
-
+ (let ((sweep-module-path (car
+ (string-lines
+ (shell-command-to-string
+ (concat
+ (or sweep-swipl-path (executable-find "swipl"))
+ " -g"
+ " write_sweep_module_location"
+ " -t"
+ " halt"))))))
+ (load sweep-module-path)))
(defface sweep-debug-prefix-face
'((default :inherit shadow))
diff --git a/sweep.pl b/sweep.pl
index de9be3e20e..844bd36f18 100644
--- a/sweep.pl
+++ b/sweep.pl
@@ -54,7 +54,8 @@
sweep_prefix_ops/2,
sweep_op_info/2,
sweep_imenu_index/2,
- sweep_module_path/2
+ sweep_module_path/2,
+ write_sweep_module_location/0
]).
:- use_module(library(pldoc)).
@@ -738,3 +739,9 @@ sweep_imenu_index(Path, Index) :-
term_string(PI, String)
),
Index).
+
+write_sweep_module_location :-
+ absolute_file_name(foreign('sweep-module'),
+ Path,
+ [file_type(executable), access(read)]),
+ writeln(Path).
- [nongnu] elpa/sweeprolog 12bddb3f75 117/166: ENHANCED: don't record one-character inputs in the top level history, (continued)
- [nongnu] elpa/sweeprolog 12bddb3f75 117/166: ENHANCED: don't record one-character inputs in the top level history, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog f82827fdb0 093/166: ENHANCED: Display message if unable to find predicate location, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 0f1119fb75 118/166: FIXED: indentation after with inline comments, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog f9218dc461 123/166: PORT: use (eql sweep) instead of (eql 'sweep) in cl-defmethods..., ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 0db900634f 120/166: DOC: update commentary section in sweep.el, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 6f7aa88050 100/166: ENHANCED: (sweep-load-buffer): report results, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 12fbadf13b 137/166: sweep.el: remove outdated sweep--compile-module function, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog c6066eabb9 144/166: ADDED: support imenu in sweep-mode buffers, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 8179cb4204 135/166: FIXED: qualify calls to sweep_funcall/2, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 7085c2e830 142/166: ADDED: sweep-mode: make sexp-based commands work on Prolog terms, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 6434715829 149/166: FIXED: use a more robust mechanism for finding sweep-module,
ELPA Syncer <=
- [nongnu] elpa/sweeprolog 69be982c41 150/166: FIXED: don't rely on string-lines added in Emacs 28.1, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 3e6fae1244 146/166: DOC: fix typos in README.org, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 6517af47b3 134/166: FIXED: sweep-init-args separate arguments, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 24a1e14ee9 151/166: MODIFIED: Breaking change: rename sweep.el to sweeprolog.el..., ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 13c7551015 156/166: ENHANCED: only fontify visible sweeprolog-mode buffers on idle, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog cada0d3871 166/166: DOC: document quasi-quotation highlighting in the manual, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 85af4010e8 158/166: Use a public mailing list in the Maintainer package header, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 353ef846fb 035/166: ENHANCED: Pass keystrokes to the top-level directly when appropriate, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 72cc4d516b 014/166: PORT: detect linux vs macOS shared object extension in Makefile, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog e029eb3e3c 016/166: update .build.yml, ELPA Syncer, 2022/09/30