From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kAXaCI/2YWPPNgEAbAwnHQ (envelope-from ) for ; Wed, 02 Nov 2022 05:48:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MGLoB4/2YWOCGgEAG6o9tA (envelope-from ) for ; Wed, 02 Nov 2022 05:48:15 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B881E9FBE for ; Wed, 2 Nov 2022 05:48:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oq5ev-00051e-C0; Wed, 02 Nov 2022 00:47:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oq5eo-000516-0A for emacs-orgmode@gnu.org; Wed, 02 Nov 2022 00:47:18 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oq5ei-0003BT-93 for emacs-orgmode@gnu.org; Wed, 02 Nov 2022 00:47:17 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id EF7A0240026 for ; Wed, 2 Nov 2022 05:47:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667364430; bh=ErE0IddfuG9kQ0gQmjv+/zF08ALFbzZWYhfiKTVWUSY=; h=From:To:Cc:Subject:Date:From; b=Yqof+7WyyBhIIKTB6Xj1GkgHigLKyz2EK+TDfpfOB/kMytxtC9Iov/Vte8cPyyYPG y37tg9qfIjh8qrcEUJvhoS+5JbdVb4knnvoRR83dkbvnwN9i9IExBGjZBzvqtdP2Sh dokSt57BA/ilLFxVuZ8mQbBWGGqj+E3rFeJUTvmoY0EzACAt+yFvHwEJciB447nZCj NFoyoxfdqCqiKHiwpiQ+ctWvWB8JrZ9Gatevvxly2dNnNRutDFE5Eo7/AeVlBBTmSY dd8jPifNoS49l2lVwRO2V43kRIlqb4nmo4iHAVR/4uqcbzmSAS+0brnM/unDnEft/c 8dZc8ilIo43DA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N2DrX4pzcz9rxG; Wed, 2 Nov 2022 05:47:08 +0100 (CET) From: Ihor Radchenko To: Mati Cc: emacs-orgmode@gnu.org Subject: Re: [O] Maxima code blocks does not work in windows revisited In-Reply-To: <7d4bfdf1-b210-c90c-9448-703939764fe0@electrum-bikes.pl> References: <8ae50265-2a3a-b1cc-de80-11fd7d8d4a8a@electrum-bikes.pl> <87leovm77b.fsf@localhost> <7d4bfdf1-b210-c90c-9448-703939764fe0@electrum-bikes.pl> Date: Wed, 02 Nov 2022 04:47:45 +0000 Message-ID: <87sfj2kln2.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667364494; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4z1GQMQMdpuxGOiQtBfeQCC5vftC/XZTPPBMwYiCREg=; b=SxRQkCUqTd2NjQFyRjvU+OlXh1yvSlftncLelSQGaTyHVwFjTtwhxff7UfHTVospQHdIMA T2VR3ZRESql5WM7PX5KZ/hG8JCSxSRwN98mYtyXc4uPaJ18YgSnybEoWixfPK+RcMWXmOt SlsWnxtGUPbKFH7/9rHRAD8Tye9Nz08wRUH7m1iWruiozrQN5Dl/3FpPwEmgjAghOjUVxZ 2jv20E8apjlbv20V5Qddfq7+Cleo/dZCCTid2CRifNarEfJuJcs1VNz0MwO4JF7peind79 8aIV1r3WU9ievClNLo8v0K+hLGVwgZv+emDnp8h3FwgaUGNSeaFzbSQb72LEJg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667364494; a=rsa-sha256; cv=none; b=LC5alfLWVsFlcCngK4a93w1nKiw18DLGCAfmb/8t21bvs1kCXqY5bhu17IAxoDRs5vcgKz Azmk1lr6JBqpHcgryP+nAiHbs9R9hxyc9dCYMEbmNOs44pAouibvf7PMFsgV5Pwl9jKhW+ q5iiE2+QaKxO4uUIAl4/LlfNdyajT7141Q6nr6+C8zC30sppW2Y+47SX1ix4e8tLweCk1G MAVbWmuEty+3bksmNrP88iM77WcsiiVgLXSIr0KPHn3lcR8VBF72ycJ5019AmUu9hWF+uE vtP/3C3Jf62JC2UA3Bumeq/QmsT9VLqAeIzTQrGZjyvKDBMaSOfo5eoa/UxU2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Yqof+7Wy; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.48 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Yqof+7Wy; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B881E9FBE X-Spam-Score: -3.48 X-Migadu-Scanner: scn1.migadu.com X-TUID: 86nmJAPPOg8e --=-=-= Content-Type: text/plain Mati writes: > On 01.11.2022 09:04, Ihor Radchenko wrote: > >> Do you mean that you changed the code at line 82 inside >> org-babel-execute:maxima to >> >> (let* ((cmdline (or (cdr (assoc :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))) >> >> ?? >> >> (for reference, this email is a followup of >> https://orgmode.org/list/CA+ikm3wqA33xP4c3pVV+F2a-gn0dbEzsdx6Vf2cRd+37+u6pBA@mail.gmail.com) > > yes, of course only part of it Ok. Does the attached patch work for you? > I am testing maxima-mode now (not in org) and it works, but is broken on > windows. Looks like there are many more problems with syntax. Org support for Maxima does not require maxima-mode to be installed, except for optional fontification. Note that we can only help with within Org scope. We cannot freely modify Maxima code. It will be more productive if you contact Maxima developers on the issue. They do have a mailing list: https://maxima.sourceforge.io/maximalist.html#discussion --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-ob-maxima-Add-extra-quotes-to-Maxima-cmd-for-Windows.patch >From 4c1faea44cbe97e53ffb4f78829b86e0da606417 Mon Sep 17 00:00:00 2001 Message-Id: <4c1faea44cbe97e53ffb4f78829b86e0da606417.1667364311.git.yantar92@posteo.net> From: Ihor Radchenko Date: Wed, 2 Nov 2022 12:43:35 +0800 Subject: [PATCH] ob-maxima: Add extra quotes to Maxima cmd for Windows compatibility * lisp/ob-maxima.el (org-babel-execute:maxima): Add extra quoting apparently needed to make cmd line work on Windows. Reported-by: Juan Alvaro Fuentes Link: https://orgmode.org/list/CA+ikm3wqA33xP4c3pVV+F2a-gn0dbEzsdx6Vf2cRd+37+u6pBA@mail.gmail.com --- lisp/ob-maxima.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-maxima.el b/lisp/ob-maxima.el index dba12d7b6..52423db18 100644 --- a/lisp/ob-maxima.el +++ b/lisp/ob-maxima.el @@ -84,7 +84,7 @@ (defun org-babel-execute:maxima (body params) (cmd (format "%s --very-quiet -r %s$ %s" org-babel-maxima-command (shell-quote-argument - (format "batchload(%S)" in-file)) + (format "\"batchload(\\\"%S\\\")\"" in-file)) cmdline))) (with-temp-file in-file (insert (org-babel-maxima-expand body params))) (message cmd) -- 2.35.1 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--