Re: [PATCH] Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-22 Thread Ihor Radchenko
Leo Butler writes: > Please find attached the amended patch. All things considered, I think > this is the best option to fix the issue that has arisen. Thanks! Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a628d46712 Fixed. -- Ihor Radchenko // yantar92, O

[PATCH] Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-20 Thread Leo Butler
Ihor, Please find attached the amended patch. All things considered, I think this is the best option to fix the issue that has arisen. Leo From db509cf4b81f78a5c85cf12c7f7b2879f2a47397 Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Sun, 15 Dec 2024 21:20:26 -0600 Subject: [PATCH] lisp/ob-maxim

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-19 Thread Benjamin McMillan
The modified suggestion: (add-to-list 'org-babel-maxima--output-filter-regexps "(linenum:0,$") also fixes the problem in the cases that I checked. Benjamin On Wed, Dec 18, 2024 at 10:06 AM Leo Butler wrote: > On Tue, Dec 17 2024, Ihor Radchenko wrote: > > > Leo Butler writes: > > > >> Puttin

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-17 Thread Leo Butler
On Tue, Dec 17 2024, Ihor Radchenko wrote: > Leo Butler writes: > >> 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. > > FYI, I have basically no experience with Maxima. So, I was simply > shooting in the dark. A

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-17 Thread Ihor Radchenko
Leo Butler writes: > 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. FYI, I have basically no experience with Maxima. So, I was simply shooting in the dark. AFAIU, linenum:0 simply sets variable value. If setting

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-16 Thread Leo Butler
On Mon, Dec 16 2024, Ihor Radchenko wrote: > Leo Butler 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 conc

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-16 Thread Ihor Radchenko
Leo Butler 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') I am a bit worried that such a simple regexp may catch false positives. May we somehow

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-15 Thread Leo Butler
Ihor, Attached is a patch to fix the problem that Benjamin has encountered. Best regards, Leo From acc099ca608b59c60f941d8dbff25a17e7adbf8c Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Sun, 15 Dec 2024 21:20:26 -0600 Subject: [PATCH] lisp/ob-maxima.el: fix Mac-related bug * ob-maxima.el (or

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-15 Thread Benjamin McMillan
Dear Leo, Ah right, good idea. That works! Best, Ben On Sun, Dec 15, 2024 at 12:11 PM 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 "(linenu

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-14 Thread Leo Butler
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 t

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-12 Thread Benjamin McMillan
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 (ass

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-10 Thread Leo Butler
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_5

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-10 Thread Benjamin McMillan
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_58gn/T/babel-wImUPJ/maxima-Swf2M2.max\"\)\)\$ --very-quiet Wrote /var

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-09 Thread Leo Butler
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

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-09 Thread Leo Butler
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

[BUG] ob-maxima outputs linenum:0 in results on MacOS (was: [BUG] export blocks no longer fontifying [9.7.10 (release_9.7.10 @ /Users/ben/Scripts/emacs/lisp/org/)])

2024-12-08 Thread Ihor Radchenko
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, in