[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-gauche dfc3090 106/119: Correctly detect version wi
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-gauche dfc3090 106/119: Correctly detect version with Gauche 0.9.6 |
Date: |
Sun, 1 Aug 2021 18:28:06 -0400 (EDT) |
branch: elpa/geiser-gauche
commit dfc309010ac840577acb279dd27ac42105323bcf
Author: András Simonyi <andras.simonyi@gmail.com>
Commit: András Simonyi <andras.simonyi@gmail.com>
Correctly detect version with Gauche 0.9.6
---
geiser-gauche.el | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/geiser-gauche.el b/geiser-gauche.el
index 75fcdb4..2cdd718 100644
--- a/geiser-gauche.el
+++ b/geiser-gauche.el
@@ -170,7 +170,7 @@
(defconst geiser-gauche--prompt-regexp "gosh\\(\\[[^(]+\\]\\)?> ")
-(defconst geiser-gauche--minimum-version "0.9.9")
+(defconst geiser-gauche--minimum-version "0.9.6")
(defconst geiser-gauche--exit-command
"(exit)")
@@ -189,7 +189,14 @@
(defun geiser-gauche--version (binary)
"Return the version of a Gauche BINARY."
- (cadr (read (cadr (process-lines binary "-V")))))
+ (let ((v (process-lines binary "-V")))
+ (if (< 1 (length v))
+ ;; Multiline version info is (hopefully) a sexp.
+ (cadr (read (cadr v)))
+ ;; One line is a free-text version description string.
+ (let* ((s (car v))
+ (start (string-match "version" (car v))))
+ (substring s (+ start 8) (+ start 13))))))
(defun geiser-gauche--startup (_remote)
"Initialize a Gauche REPL."
- [nongnu] elpa/geiser-gauche 362f1d1 071/119: Add LICENSE, (continued)
- [nongnu] elpa/geiser-gauche 362f1d1 071/119: Add LICENSE, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 9a26b8f 072/119: Aesthetic changes toward MELPA, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 83c9949 069/119: Minor improvement, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 93a7c9d 073/119: Add Cask file, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche eae0506 082/119: Finish autoload related changes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche fb927ed 084/119: Update README.md, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche bdaeb16 097/119: Fix comletion bug, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche b8a5c0d 091/119: Minor README update, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 45ee16c 100/119: Minor README improvement, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche abd3353 101/119: Add TOC to README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche dfc3090 106/119: Correctly detect version with Gauche 0.9.6,
Philip Kaludercic <=
- [nongnu] elpa/geiser-gauche 8e737d2 110/119: Improve completion, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 5a2f9c6 118/119: Update README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 2d3992e 117/119: Update README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 6b79b43 036/119: Cleanup, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 524b594 046/119: Start work on module documentation, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche a1ef874 049/119: Finish module info for now, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 4027a84 053/119: Minor fix, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 2e6dbc4 076/119: Aesthetic changes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 6806302 077/119: Cosmetic changes for MELPA, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-gauche 0be6e0a 081/119: Add setup elisp file, Philip Kaludercic, 2021/08/01