diff options
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-chicken.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/elisp/geiser-chicken.el b/elisp/geiser-chicken.el index 1ace770..b436d92 100644 --- a/elisp/geiser-chicken.el +++ b/elisp/geiser-chicken.el @@ -258,10 +258,14 @@ This function uses `geiser-chicken-init-file' if it exists." (defconst geiser-chicken-minimum-version "4.8.0.0") (defun geiser-chicken--version (binary) - (cadar - (seq-filter #'(lambda (l) (string-equal "Version" (car l))) - (mapcar #'split-string - (process-lines binary "-version"))))) + (shell-command-to-string + (format "%s -e '(display \ + (or (handle-exceptions exn \ + #f \ + (eval `(begin (import chicken.platform) \ + (chicken-version)))) \ + (chicken-version)))'" + binary))) (defun connect-to-chicken () "Start a Chicken REPL connected to a remote process." |