From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WAqaDQS1XmfpKAAAe85BDQ:P1 (envelope-from ) for ; Sun, 15 Dec 2024 10:52:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WAqaDQS1XmfpKAAAe85BDQ (envelope-from ) for ; Sun, 15 Dec 2024 11:52:52 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="Mmp/0E0L"; dmarc=pass (policy=none) header.from=gmail.com; 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-Seal: i=1; s=key1; d=yhetil.org; t=1734259971; a=rsa-sha256; cv=none; b=PrNDh7FkVHiL3sTB2xIFIvXPVudk2AyhxgV7iFf3PvbQllp2ZEebhbKLbqQGRobiD3ksl0 EHgt6E1xPC7IbFwBoLwh14005h2igpyprJixPAtzIwUMo3G4NmD8bNeH+iI8EWqBMkBA2j jj1ZOC0z51JjnvlSYM6/MhLpjv2Z3umQqJwnSJ1g2a9uSaXeXOk5az0tRHHyRdXVPytIP4 DzKIpurnHp6EN3D9Fk3bU6CNJf44E2z70XcfcDqAPPPKyZ9vtB2L90utnjFCu+A9nS+zUM /jUSKWepScmcQ/zF/Yl4XQHZ2CmFe0/1oM5Idg3e9TLoW6hc6FsCeU5qAZgGeQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="Mmp/0E0L"; dmarc=pass (policy=none) header.from=gmail.com; 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=1734259971; 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=qcmIuZVxA0m+OSs0R4PRtbn2gPE3/t1FS8pfAIzAGt0=; b=A3m4Fj8DcFbwvt7S4dDtHu9ZUZLpGDzDX6fGnhdnKuDlOwhWv9u+wNlfKtTS8ih7OQlr4G k35os8wM08xChgjgNr5PzmyHjeMpj61i2PWE07wSBqIVXZfFk8WkwtmQ4w1NRZhPm7fn6A AgnReUohKvpO+6rAQUOA9SmuUS8dgnHF3926LyLJclABccusDU4qbcFWpwAzvyJ7M3QPxw 5W113wUDXWYhLv5r8S8Lljz1cmEOrUXMdBASzdOVWebX+RyCKFJx4V/LnEa2bPj+QFzlUN za4mhP6mvzZXC1WPjtthW5zyP+N/ODZQl0pIKDm/XTnyHk7pj8Q+tBMEvn/YLg== 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 CED591B4FE for ; Sun, 15 Dec 2024 11:52:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMkE2-0000Oo-SR; Sun, 15 Dec 2024 03:43:43 -0500 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 1tMkDz-0000IS-9g for emacs-orgmode@gnu.org; Sun, 15 Dec 2024 03:43:39 -0500 Received: from mail-yb1-xb32.google.com ([2607:f8b0:4864:20::b32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMkDw-0003EW-Nk for emacs-orgmode@gnu.org; Sun, 15 Dec 2024 03:43:38 -0500 Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-e39f43344c5so2368157276.1 for ; Sun, 15 Dec 2024 00:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734252212; x=1734857012; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qcmIuZVxA0m+OSs0R4PRtbn2gPE3/t1FS8pfAIzAGt0=; b=Mmp/0E0LqWvm5vzH7qO+EhXOsOJcRHUTxgqEKTwQhzd8wHI4MpymYGV2C+B+Q6YRBh b5DSuxGxGbXFXB+2dYh02ezZtdvxEo6FUx5baQtfEk/iTPPfUwETC3uUszV+e6wG3Zl0 PfrvceahkaY80d7dx7o/DKS1d4oqmNWqBHR1beXqgproBMr7ymZmD+CYLXywbRZS4IQX vwtKBi6/fM4Qn8MWnf1yqAOX6yAnbruTVeIrSZtChDkSufxGmrnd5JasHoqiDvBsujH/ h4Jy5RfQbBe92xiAGwUEJgHqognKYK6UaZO9eG0Uh3R9Iols/aaDA8JHNrBrTG1JrCYh o9xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734252212; x=1734857012; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qcmIuZVxA0m+OSs0R4PRtbn2gPE3/t1FS8pfAIzAGt0=; b=sal4DYhLVhRyrwp0M4FJfx2m7Z5CFnOJ7yXVrXvCCLqxBLgjRr1unIls70qHCaprKa Vznr1SY7R/SaPR3znQ5dNnigxNFW7UH4KJ6kpSC4ofwf2k9VimSYV+h6QjeuabyQaNGP cf4GDIecSncD1+0IW2JcCfhIb9jfqH+pQj6oKqGw/WyRKeOtR33S89kC6SUjl0P99LyI BZgYHQU4DA//q0aYZnlak9QcPcTDDj4mwtEMorrMnHGxn5YKULpdf4MC1lYk2apYUECB Be3kjQ1E5SaJeXPpjaNjeji6lNkQRsSDuqZzrBpf7C7MWsnTN5ZxGECMVFiunN757ZI9 qqyQ== X-Forwarded-Encrypted: i=1; AJvYcCXp2Wc7vpySUlM/HZVI2dvw2sZkCf7BTJkpQbZPxj3HcnxQlQHe8VqAXw3V7AHbsH8NV0MKILgqafn5NBOm@gnu.org X-Gm-Message-State: AOJu0YzBqUNDsCVA7BOL55Wa3WvbDPE0FpxDLhKaePBetSjrlOKffG/D jS1gBkva2JtsK7z67gXZDykUZBYb7DUCePhKPaBju6g4VDdej+u28YMjLDojySM4vC0Rajk7jGC 89ed14ZOSReYfJCNLyX9Pye9VsvU= X-Gm-Gg: ASbGncununWVAnnr8Srjj7VvuGiV/ALiOg6eslx+JOyPD/KCdCfy272iUA30B3Adpae TZ3LTAzStK5SkkgrrpIgWgxtIp8wNUvOErRyYhP0= X-Google-Smtp-Source: AGHT+IEyeW8+/Vu+ogqpwEpV0TmYNzwrVF9oQCGxr9t5hdrBPFKvBtECc/HBOXYk+2xKkQJf57sUQSkdndS2beVid7w= X-Received: by 2002:a05:6902:11ce:b0:e3c:7c3f:253a with SMTP id 3f1490d57ef6-e434f94c81dmr7013274276.36.1734252212577; Sun, 15 Dec 2024 00:43:32 -0800 (PST) MIME-Version: 1.0 References: <87h6aejf17.fsf@localhost> <87tte8qakc.fsf@localhost> <87ed3sgptk.fsf@localhost> <87ldxysqoo.fsf@localhost> <874j4gfocp.fsf@localhost> <87ttccs1vc.fsf@localhost> <878qt9yd69.fsf@localhost> <87plm2e50v.fsf@localhost> <87h67cx569.fsf@t14.reltub.ca> <874j3cvcew.fsf@t14.reltub.ca> <87ttbbpgbo.fsf@t14.reltub.ca> <87seqplv1g.fsf@t14.reltub.ca> In-Reply-To: <87seqplv1g.fsf@t14.reltub.ca> From: Benjamin McMillan Date: Sun, 15 Dec 2024 21:43:06 +1300 Message-ID: Subject: Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS To: Leo Butler Cc: Ihor Radchenko , "emacs-orgmode@gnu.org" Content-Type: multipart/alternative; boundary="00000000000014ee9f06294b0f95" Received-SPF: pass client-ip=2607:f8b0:4864:20::b32; envelope-from=mcmillanbb@gmail.com; helo=mail-yb1-xb32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Spam-Score: -6.42 X-Spam-Score: -6.42 X-Migadu-Queue-Id: CED591B4FE X-Migadu-Scanner: mx12.migadu.com X-TUID: I3LvC+FdNpei --00000000000014ee9f06294b0f95 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Leo, Ah right, good idea. That works! Best, Ben On Sun, Dec 15, 2024 at 12:11=E2=80=AFPM Leo Butler wrote: > Benjamin, > > What if you remove the anchor at the beginning of the regexp? Does the > following work with the other tests? > > (add-to-list 'org-babel-maxima--output-filter-regexps "(linenum:0,") > > Best regards, > Leo > > On Fri, Dec 13 2024, Benjamin McMillan wrote: > > > Hi Leo, > > The first suggestion, to add to org-babel-maxima--output-filter-regexps > > does fix the src block you ask about here. > > However, the regexp doesn't match for other maxima tests. For example: > > > > #+name: ob-maxima/batch+verbatim > > #+begin_src maxima :results verbatim :batch batch :cmdline --quiet > > > > (assume(z>0), > > integrate(exp(-t)*t^z, t, 0, inf)); > > #+end_src > > > > #+RESULTS: ob-maxima/batch+verbatim > > #+begin_example > > > > (%i1) (linenum:0, > > (%i1) (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf)) > > (%o1) gamma(z + 1) > > #+end_example > > > > Best, > > Ben > > > > On Wed, Dec 11, 2024 at 7:02=E2=80=AFAM Leo Butler > wrote: > > > >> On Tue, Dec 10 2024, Benjamin McMillan wrote: > >> > >> > Hi Leo, > >> > I get the following output: > >> > > >> > #+RESULTS: > >> > > >> > #+begin_example > >> > (linenum:0, > >> > #+end_example > >> > > >> > and from *messages*: > >> > > >> > Executing Maxima source code block > >> > maxima -r \(linenum\:0\,\ > >> > > >> > batchload\(\"/var/folders/f5/6nrph1812wdf0nlg4ddcs_580000gn/T/babel-wImUP= J/maxima-Swf2M2.max\"\)\)\$ > >> > --very-quiet > >> > Wrote > >> > > >> > /var/folders/f5/6nrph1812wdf0nlg4ddcs_580000gn/T/babel-wImUPJ/ob-input-Rb= gtzp > >> > Code block evaluation complete (took 0.1s). > >> > > >> > The contents of that file (which I also attach) are: > >> > > >> > build_info(); > >> > > >> > If there's more information I can give, just let me know. > >> > Thanks, > >> > Benjamin > >> > > >> > On Tue, Dec 10, 2024 at 9:17=E2=80=AFAM Leo Butler > >> wrote: > >> > > >> >> On Mon, Dec 09 2024, Leo Butler wrote: > >> >> > >> >> > On Sun, Dec 08 2024, Ihor Radchenko wrote: > >> >> > > >> >> >> Benjamin McMillan writes: > >> >> >> > >> >> >>> This outputs > >> >> >>> #+RESULTS: > >> >> >>> | (linenum:0, | > >> >> >>> | 4 | > >> >> >>> > >> >> >>> I suppose the issue is the "linenum:0". In fact, running any of > the > >> >> test > >> >> >>> src blocks does that, e.g. > >> >> >>> #+begin_src maxima :results verbatim :batch batch > >> >> >>> (assume(z>0), > >> >> >>> integrate(exp(-t)*t^z, t, 0, inf)); > >> >> >>> #+end_src > >> >> >>> > >> >> >>> #+RESULTS: > >> >> >>> #+begin_example > >> >> >>> (linenum:0, > >> >> >>> (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf)) > >> >> >>> gamma(z + 1) > >> >> >>> #+end_example > >> >> >>> This does not match the (should (equal ...)) in test-ob-maxima.= el > >> >> >>> > >> >> >>> I don't know maxima, and haven't made any explicit modification= s > >> >> regards > >> >> >>> it, so I don't know why my setup would be outputting linenum:0 > >> >> > >> >> Benjamin, > >> >> When you execute your source code block, ob-maxima prints the shell > >> >> command as a message. Could you copy that shell command from > *Messages* > >> >> and send it, along with the batch file that ob-maxima creates? > >> >> > >> >> Thanks, > >> >> Leo > >> >> > >> >> >> > >> >> >> Setting linenum was introduced in > >> >> >> https://list.orgmode.org/orgmode/87jzsrai3x.fsf@localhost/ > >> >> >> > >> >> >> It clearly does not affect Linux, but Maxima on MacOS appears to > have > >> >> >> slightly different behavior. > >> >> >> > >> >> >> I am CCing the author of the original patch that introduced this > >> >> setting. > >> >> >> Leo, maybe you have some insight? > >> >> >> > >> >> >> Unless we can do something to solve the problem on Mac, I am > >> tentatively > >> >> >> inclined to revert the linenum part of the patch, so that > ob-maxima > >> is > >> >> >> not broken on MacOS. > >> >> > > >> >> > Benjamin, > >> >> > Could you include the output of > >> >> > > >> >> > #+begin_src maxima :results verbatim > >> >> > build_info(); > >> >> > #+end_src > >> >> > > >> >> > , please? I think the bug is in the Mac build of Maxima, but I ne= ed > >> more > >> >> > information to figure it out. > >> >> > > >> >> > Best, > >> >> > Leo > >> > >> Hi Benjamin, > >> > >> Let me preface my requests by saying that I do not have access to a Ma= c, > >> and the problem you are seeing seems to be Mac-specific, so I am > >> searching in the dark for a solution to the problem. > >> > >> I have a couple ideas. > >> > >> * First idea > >> ** Add the regexp =3D^(linenum:0,=3D to > >> =3Dorg-babel-maxima--output-filter-regexps=3D > >> > >> #+begin_src elisp :exports none :results raw > >> (add-to-list 'org-babel-maxima--output-filter-regexps "^(linenum:0,"= ) > >> #+end_src > >> > >> ** Evaluate your Maxima code block > >> > >> #+name: max > >> #+begin_src maxima :results raw :batch batch > >> (assume(z>0), integrate(exp(-t)*t^z, t, 0, inf)); > >> #+end_src > >> > >> If all goes well, you should see the output: > >> > >> #+RESULTS: max > >> (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf)) > >> gamma(z + 1) > >> > >> Please evaluate these code blocks in an Org buffer and tell us how it > >> goes. > >> > >> * Second idea > >> > >> We could introduce a customization variable, e.g. > >> org-babel-maxima-batch/load-format-string, whose default is the curren= t > >> value is "(linenum:0, %s(%S))$". You could change that to "%s(%S)$". > >> > >> I would prefer to see if the first idea works for you, though, before > >> pursuing this. > >> > >> TIA, > >> Leo --00000000000014ee9f06294b0f95 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear Leo,
Ah right, good idea. That works!<= /div>
Best,
Ben

On Sun, De= c 15, 2024 at 12:11=E2=80=AFPM Leo Butler <Leo.Butler@umanitoba.ca> wrote:
Benjamin,

What if you remove the anchor at the beginning of the regexp? Does the
following work with the other tests?

(add-to-list 'org-babel-maxima--output-filter-regexps "(linenum:0,= ")

Best regards,
Leo

On Fri, Dec 13 2024, Benjamin McMillan <mcmillanbb@gmail.com> wrote:

> Hi Leo,
> The first suggestion, to add to org-babel-maxima--output-filter-regexp= s
> does fix the src block you ask about here.
> However, the regexp doesn't match for other maxima tests. For exam= ple:
>
> #+name: ob-maxima/batch+verbatim
> #+begin_src maxima :results verbatim :batch batch :cmdline --quiet
>
> (assume(z>0),
> integrate(exp(-t)*t^z, t, 0, inf));
> #+end_src
>
> #+RESULTS: ob-maxima/batch+verbatim
> #+begin_example
>
> (%i1) (linenum:0,
> (%i1) (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))
> (%o1)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 gamma(z + 1)
> #+end_example
>
> Best,
> Ben
>
> On Wed, Dec 11, 2024 at 7:02=E2=80=AFAM Leo Butler <Leo.Butler@umanitoba.ca&g= t; wrote:
>
>> On Tue, Dec 10 2024, Benjamin McMillan <mcmillanbb@gmail.com> wrote:
>>
>> > Hi Leo,
>> > I get the following output:
>> >
>> > #+RESULTS:
>> >
>> > #+begin_example
>> > (linenum:0,
>> > #+end_example
>> >
>> > and from *messages*:
>> >
>> > Executing Maxima source code block
>> > maxima -r \(linenum\:0\,\
>> >
>> batchload\(\"/var/folders/f5/6nrph1812wdf0nlg4ddcs_580000gn/T= /babel-wImUPJ/maxima-Swf2M2.max\"\)\)\$
>> >=C2=A0 --very-quiet
>> > Wrote
>> >
>> /var/folders/f5/6nrph1812wdf0nlg4ddcs_580000gn/T/babel-wImUPJ/ob-i= nput-Rbgtzp
>> > Code block evaluation complete (took 0.1s).
>> >
>> > The contents of that file (which I also attach) are:
>> >
>> > build_info();
>> >
>> > If there's more information I can give, just let me know.=
>> > Thanks,
>> > Benjamin
>> >
>> > On Tue, Dec 10, 2024 at 9:17=E2=80=AFAM Leo Butler <Leo.Butler@umanitoba= .ca>
>> wrote:
>> >
>> >> On Mon, Dec 09 2024, Leo Butler <Leo.Butler@umanitoba.ca> wro= te:
>> >>
>> >> > On Sun, Dec 08 2024, Ihor Radchenko <yantar92@posteo.net> wr= ote:
>> >> >
>> >> >> Benjamin McMillan <mcmillanbb@gmail.com> writes:
>> >> >>
>> >> >>> This outputs
>> >> >>> #+RESULTS:
>> >> >>> | (linenum:0, |
>> >> >>> |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A04 = |
>> >> >>>
>> >> >>> I suppose the issue is the "linenum:0&q= uot;. In fact, running any of the
>> >> test
>> >> >>> src blocks does that, e.g.
>> >> >>> #+begin_src maxima :results verbatim :batch = batch
>> >> >>> (assume(z>0),
>> >> >>> integrate(exp(-t)*t^z, t, 0, inf));
>> >> >>> #+end_src
>> >> >>>
>> >> >>> #+RESULTS:
>> >> >>> #+begin_example
>> >> >>> (linenum:0,
>> >> >>> (assume(z > 0),integrate(exp(-t)*t^z,t,0,= inf))
>> >> >>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 g= amma(z + 1)
>> >> >>> #+end_example
>> >> >>> This does not match the (should (equal ...))= in test-ob-maxima.el
>> >> >>>
>> >> >>> I don't know maxima, and haven't mad= e any explicit modifications
>> >> regards
>> >> >>> it, so I don't know why my setup would b= e outputting linenum:0
>> >>
>> >> Benjamin,
>> >> When you execute your source code block, ob-maxima prints= the shell
>> >> command as a message. Could you copy that shell command f= rom *Messages*
>> >> and send it, along with the batch file that ob-maxima cre= ates?
>> >>
>> >> Thanks,
>> >> Leo
>> >>
>> >> >>
>> >> >> Setting linenum was introduced in
>> >> >> https://list.or= gmode.org/orgmode/87jzsrai3x.fsf@localhost/
>> >> >>
>> >> >> It clearly does not affect Linux, but Maxima on = MacOS appears to have
>> >> >> slightly different behavior.
>> >> >>
>> >> >> I am CCing the author of the original patch that= introduced this
>> >> setting.
>> >> >> Leo, maybe you have some insight?
>> >> >>
>> >> >> Unless we can do something to solve the problem = on Mac, I am
>> tentatively
>> >> >> inclined to revert the linenum part of the patch= , so that ob-maxima
>> is
>> >> >> not broken on MacOS.
>> >> >
>> >> > Benjamin,
>> >> > Could you include the output of
>> >> >
>> >> > #+begin_src maxima :results verbatim
>> >> > build_info();
>> >> > #+end_src
>> >> >
>> >> > , please? I think the bug is in the Mac build of Max= ima, but I need
>> more
>> >> > information to figure it out.
>> >> >
>> >> > Best,
>> >> > Leo
>>
>> Hi Benjamin,
>>
>> Let me preface my requests by saying that I do not have access to = a Mac,
>> and the problem you are seeing seems to be Mac-specific, so I am >> searching in the dark for a solution to the problem.
>>
>> I have a couple ideas.
>>
>> * First idea
>> ** Add the regexp =3D^(linenum:0,=3D to
>> =3Dorg-babel-maxima--output-filter-regexps=3D
>>
>> #+begin_src elisp :exports none :results raw
>>=C2=A0 =C2=A0(add-to-list 'org-babel-maxima--output-filter-rege= xps "^(linenum:0,")
>> #+end_src
>>
>> ** Evaluate your Maxima code block
>>
>> #+name: max
>> #+begin_src maxima :results raw :batch batch
>>=C2=A0 =C2=A0(assume(z>0), integrate(exp(-t)*t^z, t, 0, inf)); >> #+end_src
>>
>> If all goes well, you should see the output:
>>
>> #+RESULTS: max
>> (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf))
>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 gamma(z + 1)
>>
>> Please evaluate these code blocks in an Org buffer and tell us how= it
>> goes.
>>
>> * Second idea
>>
>> We could introduce a customization variable, e.g.
>> org-babel-maxima-batch/load-format-string, whose default is the cu= rrent
>> value is "(linenum:0, %s(%S))$". You could change that t= o "%s(%S)$".
>>
>> I would prefer to see if the first idea works for you, though, bef= ore
>> pursuing this.
>>
>> TIA,
>> Leo
--00000000000014ee9f06294b0f95--