emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 6156b57bdf: ob-maxima.el: Fix execution on MS Windo


From: ELPA Syncer
Subject: [elpa] externals/org 6156b57bdf: ob-maxima.el: Fix execution on MS Windows
Date: Sat, 29 Oct 2022 02:57:56 -0400 (EDT)

branch: externals/org
commit 6156b57bdf2b14ccfbf6646e8d217599738b694d
Author: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
Commit: Ihor Radchenko <yantar92@posteo.net>

    ob-maxima.el: Fix execution on MS Windows
    
    * ob-maxima.el (org-babel-execute:maxima): Change command line
    invocation to a one that should work everywhere.
    
    TINYCHANGE
---
 lisp/ob-maxima.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lisp/ob-maxima.el b/lisp/ob-maxima.el
index ada98bae8b..dba12d7b6d 100644
--- a/lisp/ob-maxima.el
+++ b/lisp/ob-maxima.el
@@ -81,8 +81,11 @@ This function is called by `org-babel-execute-src-block'."
        (result
         (let* ((cmdline (or (cdr (assq :cmdline params)) ""))
                (in-file (org-babel-temp-file "maxima-" ".max"))
-               (cmd (format "%s --very-quiet -r 'batchload(%S)$' %s"
-                            org-babel-maxima-command in-file cmdline)))
+               (cmd (format "%s --very-quiet -r %s$ %s"
+                            org-babel-maxima-command
+                             (shell-quote-argument
+                              (format "batchload(%S)" in-file))
+                             cmdline)))
           (with-temp-file in-file (insert (org-babel-maxima-expand body 
params)))
           (message cmd)
            ;; " | grep -v batch | grep -v 'replaced' | sed '/^$/d' "



reply via email to

[Prev in Thread] Current Thread [Next in Thread]