From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wJf6Lyzi8mQmDQAAauVa8A:P1 (envelope-from ) for ; Sat, 02 Sep 2023 09:20:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wJf6Lyzi8mQmDQAAauVa8A (envelope-from ) for ; Sat, 02 Sep 2023 09:20:12 +0200 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 76B508C9F for ; Sat, 2 Sep 2023 09:20:12 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PdQYoIZi; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693639212; 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=U5Ms44TQYF/q3i8DKLDOxxBtvRslTICqY3c1a5DUzpg=; b=FgzaTdreO48zniJ62XaSD4e4qfwydsqgYgMv63JfPIf3bscJJAqq9y8N8YbaxB8UL3pBb4 IRgW0oEyqmFWLfG3e05ZvDjvLamFu+JtqCyZzOYuIMiafXMsvUsX3603y0L/IAHWiiKnxe HHCDFQG1JTRsfz/jha/cpEzC+niKKdtxoW5haaPeHb2PTcgBsdf2hNZvd3b9KSdwn8MA6w pWzeDTv+lTPXX0DXdCtDiHk4Zf0OtTCmCyszGMRdt5l+S3/DPFaZPE49qwWGGJQJk0/JaR FbkKeMXs0dB0ggA2jwl0Be+fACoCwjj6PanwRo4qw6eue9lbFgzH0HgioqjRVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693639212; a=rsa-sha256; cv=none; b=Lbt2IfNUmwkzPZyLaqynGqcxwgK9gGMbDdQbqNUhSf2Un2icTnotsIRcgZud4FTd23Emjx U3NaKUstc1DiZ7/j+DoVE1eZ4qP6RHbDi1/Wb3XOdGnS21WZUQDw7edNht7xoU9oCYew7a a3k5Ola4vED+pl2hAl+aBJchIMfncEL2U/4LAkNoE9H4VaGVH74x0F13uoWKjv1rpnR/4s 1eDQCtJPWe6wgdx7EDsQbVp/C2Ry970PpBZIq05xXwP0FXBqmO42wFYFg6tr1NPk2wvOoz d7q3GkQpnidjH5sbIwt4+6mULG9+A32QaPF1gflql1lcnw62GAuJYQVn7NPJdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PdQYoIZi; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcKua-0001kR-AW; Sat, 02 Sep 2023 03:19:16 -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 1qcKuZ-0001kH-0u for emacs-orgmode@gnu.org; Sat, 02 Sep 2023 03:19:15 -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 1qcKuW-0000Jh-5i for emacs-orgmode@gnu.org; Sat, 02 Sep 2023 03:19:14 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 175CC240029 for ; Sat, 2 Sep 2023 09:19:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1693639150; bh=anpaffrKiFyWwijSTQNZ5x/cnhWbGaMeSES8Fxc5rhU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=PdQYoIZiI1SoGFRaSUZ+6qClND3d49ZSQ16KDLHO+sGK281nN8+cMiYLZYFKBwSSs a9BgqqLwCiBUntFli59uMPf7hyv8RBsGiBAWd/f3GRzIoZcXO19POPow919I4BZt4v 7mfkG2PwAamIMxWfPmJIMKWe7Tw4cUXcZF6gIEhisgU7jy0Nkz91OkpOma1XzXI2DB 01OUUAHPXs9IEpRFY0GGD62GOh7b8FdE5d/+HItO7vcEdCkuJ7il59JFtRh2D8F9AN L0D849cL1gVNKbyzvydefQhOD7U9FOQqLJlVRMK2JVd4LQFiSCL5Jrr7bFSyQirnkS rXZyPI4el46nw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rd5qd2N5Tz6tn4; Sat, 2 Sep 2023 09:19:09 +0200 (CEST) From: Ihor Radchenko To: Leo Butler Cc: Lockywolf , "emacs-orgmode@gnu.org" Subject: Re: [BUG] Consider replacing bachload with batch in ob-maxima. [9.6.6 (release_9.6.6 @ /usr/share/emacs/30.0.50/lisp/org/)] In-Reply-To: <87cyz1ivzw.fsf@t14.reltub.ca> References: <874jkemrk2.fsf@laptop.lockywolf.net> <87cyz1ivzw.fsf@t14.reltub.ca> Date: Sat, 02 Sep 2023 07:19:50 +0000 Message-ID: <874jkdhwix.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 76B508C9F X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -8.23 X-Spam-Score: -8.23 X-TUID: mzrUIwf8hk14 Leo Butler writes: > I think that your request may be handled by one of two improvements: > > 1. Implement session support in ob-maxima.el; and > 2. Many of the design decisions in the existing ob-maxima code should be > customizable. > I am attaching a patch to address 2. Please try it out, I think that it > will satisfy your requests. Feedback is welcome. Thanks for the patch! > +(defcustom org-babel-maxima-command-arguments > + "--very-quiet" > +(defcustom org-babel-maxima-batch/load > + "batchload" > + > +(defcustom org-babel-maxima-graphic-file-format-string > + "(set_plot_option ('[gnuplot_term, png]), set_plot_option ('[gnuplot_out_file, %S]))$" > + > +(defcustom org-babel-maxima-default-epilogue > + "gnuplot_close ()$" This might be fine, but may you please explain what would be the purpose of customizing each of these options? IMHO, in their current state, if a user mindlessly customizes these options without knowing how ob-maxima internals work, ob-maxima may simply be broken. It is also not very clear what would be the benefit customizing any of the proposed options. As a general rule, we do not expose internal details that are _required_ for things to work to users. In the above, `org-babel-maxima-default-epilogue' appears to be paired with `org-babel-maxima-graphic-file-format-string' and may need to be changed depending on its value. Also, I am not sure if removing --very-quiet may not affect :results output. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at