]> git.eshelyaron.com Git - dict.git/commitdiff
FIXED: don't rely on string-lines added in Emacs 28.1
authorEshel Yaron <me@eshelyaron.com>
Mon, 26 Sep 2022 10:00:58 +0000 (13:00 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 26 Sep 2022 10:00:58 +0000 (13:00 +0300)
sweep.el

index 8ba8cabf0c311437d529086ba95d2b66b167b494..c647417f86b19ff3814bbdcad0745cea253e51e4 100644 (file)
--- a/sweep.el
+++ b/sweep.el
@@ -139,14 +139,16 @@ inserted to the input history in `sweep-top-level-mode' buffers."
 
 (defun sweep--ensure-module ()
   (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"))))))
+                            (save-match-data
+                              (split-string
+                               (shell-command-to-string
+                                (concat
+                                 (or sweep-swipl-path (executable-find "swipl"))
+                                 " -g"
+                                 " write_sweep_module_location"
+                                 " -t"
+                                 " halt"))
+                               "\n")))))
     (load sweep-module-path)))
 
 (defface sweep-debug-prefix-face