Skip to content

Commit

Permalink
[61_14] Gambit: only available when version eq? v4.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Jul 25, 2024
1 parent 943ad93 commit 2fbd26f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion TeXmacs/plugins/gambit/progs/binary/gambit.scm
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@
(not (url-none? (find-binary-gambit))))

(tm-define (version-binary-gambit)
(version-binary (find-binary-gambit)))
(when (has-binary-gambit?)
(let*
((msg (check-stdout (string-append (url->system (find-binary-gambit)) " -v")))
(msg-l (filter (lambda (x) (not (string-null? x)))
(string-split msg #\space))))
(if (== (length msg-l) 0)
""
(car msg-l)))))
3 changes: 2 additions & 1 deletion TeXmacs/plugins/gambit/progs/init-gambit.scm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
(string-append (url->system (get-texmacs-path)) "/plugins/gambit/gambit/tm-gambit.scm")))

(plugin-configure gambit
(:require (has-binary-gambit?))
(:require (and (has-binary-gambit?)
(== (version-binary-gambit) "v4.9.5")))
(:launch ,(gambit-launcher))
(:serializer ,gambit-serialize)
(:session "Gambit Scheme"))

0 comments on commit 2fbd26f

Please sign in to comment.