[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-chibi 0272694 05/38: Use (car (process-lines ...))
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-chibi 0272694 05/38: Use (car (process-lines ...)) instead of (shell-command ...) |
Date: |
Sun, 1 Aug 2021 18:26:15 -0400 (EDT) |
branch: elpa/geiser-chibi
commit 027269447b7a1a70fe9a5ac53830841551da579c
Author: Jordan Brown <mrhmouse@gmail.com>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>
Use (car (process-lines ...)) instead of (shell-command ...)
`shell-command` assumes Bourne-shell-compatible quoting, which
doesn't work when the user isn't using a Bourne-compatible shell.
Instead of futzing about with quoting, we can just use `process-lines`
to execute a process and pass it arguments directly.
---
elisp/geiser-chibi.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/elisp/geiser-chibi.el b/elisp/geiser-chibi.el
index cb2577e..acb8b61 100644
--- a/elisp/geiser-chibi.el
+++ b/elisp/geiser-chibi.el
@@ -97,10 +97,9 @@ This function uses `geiser-chibi-init-file' if it exists."
(defconst geiser-chibi-minimum-version "0.7.3")
(defun geiser-chibi--version (binary)
- (second (split-string (shell-command-to-string
- (format "%s -V"
- (shell-quote-argument binary)))
- " ")))
+ (second (split-string
+ (car (process-lines binary "-V"))
+ " ")))
(defun geiser-chibi--startup (remote)
(let ((geiser-log-verbose-p t))
- [nongnu] elpa/geiser-chibi 2ca82e6 04/38: geiser-chibi: Implement autodoc for procedures in known modules, (continued)
- [nongnu] elpa/geiser-chibi 2ca82e6 04/38: geiser-chibi: Implement autodoc for procedures in known modules, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 6d73a7e 07/38: Catch eval and send back eval exception information, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 8588086 11/38: Improve geiser:eval to return output Add docstring to geiser:output., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi a672720 06/38: Add string combinators module, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 88a5b09 08/38: Add scheme subroutine to find files implementing modules to chibi., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi b260b6d 09/38: Remove debug printing. Align par-style with geiser., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 397ba42 13/38: Temporarily fix the symbol-module by appending (current-directory)., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi f52a4ec 16/38: Fix indenting and parenthesis positioning., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 2a4fb4f 10/38: Add a TODO tag about symbol-location to geiser.sld, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi c860e3a 12/38: Add error reporting about missing symbols to geiser-edit.el, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 0272694 05/38: Use (car (process-lines ...)) instead of (shell-command ...),
Philip Kaludercic <=
- [nongnu] elpa/geiser-chibi 41929c9 03/38: Clean-up elisp code, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 5b016dd 18/38: geiser-chibi: allow passing custom argument list to chibi scheme process, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 2e725bb 23/38: Add printing a stack trace to the user code exceptions., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 420909d 28/38: Use cl-lib instead of cl, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 71d003f 29/38: Fix typos, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi e57722a 14/38: Add a first version of geiser:symbol-location for local files., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi c32bd70 20/38: Rewrite geiser:eval in order to make it compatible with org-babel., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 354d399 21/38: Allow additional parameters to Chibi binary, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi 7606cc3 27/38: Delete trailing whitespace, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-chibi d153c2b 32/38: adapting to new scheme load path, Philip Kaludercic, 2021/08/01