summaryrefslogtreecommitdiff
path: root/elisp/geiser-guile.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2015-10-21 02:29:46 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2015-10-21 02:29:46 +0200
commit08d452400aef746552de69e0fa12dd7e6fe014f0 (patch)
tree8ace0de82a92a64e1da2db48ee504a1255282228 /elisp/geiser-guile.el
parent9fb965fe0cec51443541044a9cd65cc8f6f6c44a (diff)
downloadgeiser-guile-08d452400aef746552de69e0fa12dd7e6fe014f0.tar.gz
geiser-guile-08d452400aef746552de69e0fa12dd7e6fe014f0.tar.bz2
Use OS-specific quotes when asking for versions
Fixes #95. This is @kovrik's patch, with 80-columns max formatting.
Diffstat (limited to 'elisp/geiser-guile.el')
-rw-r--r--elisp/geiser-guile.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/elisp/geiser-guile.el b/elisp/geiser-guile.el
index e70ca30..697a045 100644
--- a/elisp/geiser-guile.el
+++ b/elisp/geiser-guile.el
@@ -335,7 +335,8 @@ This function uses `geiser-guile-init-file' if it exists."
(defconst geiser-guile-minimum-version "2.0")
(defun geiser-guile--version (binary)
- (shell-command-to-string (format "%s -c '(display (version))'" binary)))
+ (shell-command-to-string
+ (format "%s -c %s" binary (shell-quote-argument "(display (version))"))))
(defun geiser-guile-update-warning-level ()
"Update the warning level used by the REPL.