On Mon, Dec 16 2024, Ihor Radchenko <yanta...@posteo.net> wrote:

> Leo Butler <leo.but...@umanitoba.ca> writes:
>
>> Attached is a patch to fix the problem that Benjamin has encountered.
>
> Thanks!
>
>> +  '("(linenum:0,"               ;; remove fragment from command-line (see 
>> `org-babel-execute:maxima')

Benjamin,

In taking Ihor's concern into account, could you test the regexp

"(linenum:0,$"

> I am a bit worried that such a simple regexp may catch false positives.
> May we somehow avoid it?
> For example, what if we put setting linenum into the batch file we generate?

Ihor,

Putting that into the batch file will result in it appearing in the
output of the source-code block. We are trying to stop that.

I think, if the above regexp works for Benjamin, then we should use
it. The regexp only matches an incomplete (hence mal-formed) line of
input, and so it can only match the errant output that Benjamin is
seeing.

Best regards,
Leo

Reply via email to