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 SIS9Gx/f8mRL1QAAauVa8A:P1 (envelope-from ) for ; Sat, 02 Sep 2023 09:07:11 +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 SIS9Gx/f8mRL1QAAauVa8A (envelope-from ) for ; Sat, 02 Sep 2023 09:07:11 +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 DA8DD56C5A for ; Sat, 2 Sep 2023 09:07:10 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=B2aVdpb7; 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=1693638431; 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=r0jR2q1Cfu3NfD8CL11BiNLEvxyE/1/kyyNiVG0BwHc=; b=nfwgHECxqQW8zGyPV50/sSzm622HIT4Coy5rqm25ruJGMPeWpj0CqhhJEkEHqIxtHQT2zt NsWI9IC4Cs9aP3HQjV9whWZYttGhD4gJ4ZQMmNFMSavfWaNlclo4KnZWvM0bv+SxokgA2e EdYyDkS+yaBPJy/NZMmH939CvLkYkV4463XV1ub1bk5WZTAverWR4PO9HK9jkV+YpEbBlJ F8j9NjAsYfZMugGwkc/ylTqcP/5uE5J5Hw9FMw5rViXTiv+24tGLIY4IigIgAK3wuGG9pk LtSF28MSPrW9kxvuQp4AiBIQVLpe5FCgw+PB6w2/gDW9xTFAuReEoVi4Povl4Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693638431; a=rsa-sha256; cv=none; b=gMDjb+uleMXzEStuBkVJC3CFVbLcBocO/eWUHmaJZ9rirvYGg2WPirMBP2nfiUflURV0Qf FExCyYW7DOXjH+2m4TOj3+UpWUPATIPkkWYNo9wXz2N1YMe2tdLiPj7sYuzLbB1V/WBBeb Zwt04hizV5ofHzuL87WapqC7fc8RMie5lUhtLkMSrPBlCcoWMxn7CVEE7sKgRSBImFIDT4 zi9cdNjwI7M6Jh22T9uqyAcbICqyF/4CxHZ4ziOt9z477UizEAKzn2OO2Rmkd6fwbAb7QK IH1wlI7HVIKDz6ISpckF3VZeecbM6az42hgh3+/bZ//CGXWvWVd6xyM7uVebfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=B2aVdpb7; 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 1qcKhw-0003HR-Ab; Sat, 02 Sep 2023 03:06:12 -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 1qcKhu-0003B6-O4 for emacs-orgmode@gnu.org; Sat, 02 Sep 2023 03:06:10 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qcKhq-0002nS-Hk for emacs-orgmode@gnu.org; Sat, 02 Sep 2023 03:06:10 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C5301240101 for ; Sat, 2 Sep 2023 09:06:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1693638362; bh=AqP/hgwHJm9lfoFq3SuFdVZWvDtwo/KMVjuVx9AWx3M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=B2aVdpb7ZsM+o/vhdSRYWzimr/ReXjRZjcx+eD/OMU0jMvtmAPiX4F9aFWQvt6LO5 dGxATXziXErCuU6msjA8JQgTc6YIs9llLXRiWIGkzc4Pt6G/+Oq/7JNcGVacnSAZK4 U5EQkxxD5w/Mssel0WzA3+gPPiQSxMA9ffrv3Rhg2gJx/ONHQY3XleDVb2Ua1PuGlQ Y0q/h/aQ/6PSo/ffpkRQgqoQZh72mjp9mo99AVlHYVZ0zGXIAadIcf/UtM6yW57MSi gLGsLudvxL1nE3O5wTE5haFbrBJH5ljc2B9D2dwLovDbH6Xu9sEmSmOwooLiSGpZq8 l43aPahjLAk7Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rd5XV1LP6z9rxG; Sat, 2 Sep 2023 09:06:02 +0200 (CEST) From: Ihor Radchenko To: Lockywolf Cc: 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: <874jkemrk2.fsf@laptop.lockywolf.net> References: <874jkemrk2.fsf@laptop.lockywolf.net> Date: Sat, 02 Sep 2023 07:06:43 +0000 Message-ID: <87edjhhx4s.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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: DA8DD56C5A X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -8.69 X-Spam-Score: -8.69 X-TUID: ZZM6Ob63Cp25 Lockywolf writes: > At the moment, ob-maxima has a straightforward way of evaluating > babel blocks, > > #+begin_src shell > maxima --very-quiet -r batchload\(\"/tmp/ob-maximaFOOBAR.mac\"\)\$ > #+end_src > (line 87 of ob-maxima.el), > > I suggest replacing batchload with batch(), and changing line 73 from > "gnuplot_close ()$" to "gnuplot_close ()$ \nquit();" > > The difference between "batch" and "batchload" is that "batch" can > process :lisp expressions in addition to maxima's own, and it prints > input/output labels. However, it is possible to customise label printing > from maxima's own code, and being able to evaluate :lisp just seems > uncontrovercially good. > > It might be that I am missing something, but batch seems a better fit > for Org-Babel. May you please explain more about :lisp expressions? Also, what is the benefit/downside of printing input/output labels? Is there any chance they will be caught into the source block output? If so, it would be a breaking change. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at