Re: [PATCH] Add support for tables in Calc src block :var

2024-12-13 Thread Fraga, Eric
Response below/inline for email Visuwesh wrote: > (original email sent 13 Dec 2024 at 16:36) > > However, when we have something like > > x := 3 > a := 2 * x > x := 2 > z := 0.5 * x > > | 1 | | > #+TBLFM:$2=$x*$z > > what should $2 evaluate to? $z is straight-forward: $z=1

Re: [PATCH] Add support for tables in Calc src block :var

2024-12-13 Thread Visuwesh
[வெள்ளி டிசம்பர் 13, 2024] Fraga, Eric wrote: > Response below/inline for email Visuwesh wrote: >> (original email sent 13 Dec 2024 at 14:32) >> >> Update x := 3 and y first. Then update `a' and `z'. `z' will be 10.6. >> Now update x := 2, and update `z' and `a'. `z' updates to 5.4 as shown >>

Re: [PATCH] Add support for tables in Calc src block :var

2024-12-13 Thread Fraga, Eric
Response below/inline for email Visuwesh wrote: > (original email sent 13 Dec 2024 at 14:32) > > Update x := 3 and y first. Then update `a' and `z'. `z' will be 10.6. > Now update x := 2, and update `z' and `a'. `z' updates to 5.4 as shown > above but `a' remains 9! Yes, this is expected beh

Re: [PATCH] Add support for tables in Calc src block :var

2024-12-13 Thread Visuwesh
[வெள்ளி டிசம்பர் 13, 2024] Visuwesh wrote: > [...] > Some caveats: > > 1. You need to ensure that all the calc-embedded variables that you > use in the formula need to be active and evaluated beforehand. > 2. The calc-embedded var is considered at last after everything else > in org-

Re: [PATCH] Add support for tables in Calc src block :var

2024-12-12 Thread Visuwesh
Sorry for getting back after so long! [புதன் ஏப்ரல் 03, 2024] Fraga, Eric wrote: > On Saturday, 30 Mar 2024 at 18:34, Visuwesh wrote: >>> Specifically, I would love to make reference to calc variables, >>> especially those defined using embedded calc, in org tables. >> >> Can you please provide a

Re: [PATCH] Add support for tables in Calc src block :var

2024-04-03 Thread Fraga, Eric
On Saturday, 30 Mar 2024 at 18:34, Visuwesh wrote: >> Specifically, I would love to make reference to calc variables, >> especially those defined using embedded calc, in org tables. > > Can you please provide a minimal example for me to play around with? I > realise I would like something like thi

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-30 Thread Visuwesh
[திங்கள் மார்ச் 18, 2024] Fraga, Eric wrote: Good day, Eric! > Thank you for this. Potentially very useful. > > As you have managed to understand calc internals (to a much greater > degrees than I have ever managed), do you know if there is any way to go > the other way? Specifically, I would l

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-18 Thread Fraga, Eric
On Monday, 18 Mar 2024 at 20:59, Visuwesh wrote: > You give me far too credit: I merely placed an edebug trigger for > calc-push-list and used a simple-minded ' [1,2,3;4,5,6] RET to figure > out the vector format (then later I found the commentary). Cute! > If I get the time, I will try to look i

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-18 Thread Visuwesh
[திங்கள் மார்ச் 18, 2024] Fraga, Eric wrote: > Thank you for this. Potentially very useful. > > As you have managed to understand calc internals (to a much greater > degrees than I have ever managed), do you know if there is any way to go > the other way? Specifically, I would love to make refer

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-18 Thread Fraga, Eric
Thank you for this. Potentially very useful. As you have managed to understand calc internals (to a much greater degrees than I have ever managed), do you know if there is any way to go the other way? Specifically, I would love to make reference to calc variables, especially those defined using

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-16 Thread Visuwesh
[சனி மார்ச் 16, 2024] Ihor Radchenko wrote: > Visuwesh writes: > >> Subject: [PATCH] ob-calc.el: Add support for tables in Calc source block :var > > Thanks! > Applied, onto main. > I modified the patch to enable ob-calc tests by default. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/com

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-16 Thread Ihor Radchenko
Visuwesh writes: > Subject: [PATCH] ob-calc.el: Add support for tables in Calc source block :var Thanks! Applied, onto main. I modified the patch to enable ob-calc tests by default. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=89b0773c3 >> Would you mind using `org-test-with-

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-16 Thread Visuwesh
[சனி மார்ச் 16, 2024] Ihor Radchenko wrote: > Visuwesh writes: > >> Attached patch adds support for passing tables as matrices (or vector) >> to a Calc source block through the :var parameter. There might be a >> better way to do it than manually construct the data structure expected >> by Calc

Re: [PATCH] Add support for tables in Calc src block :var

2024-03-16 Thread Ihor Radchenko
Visuwesh writes: > Attached patch adds support for passing tables as matrices (or vector) > to a Calc source block through the :var parameter. There might be a > better way to do it than manually construct the data structure expected > by Calc for a matrix but given that it rarely sees changes i

[PATCH] Add support for tables in Calc src block :var

2024-03-15 Thread Visuwesh
Attached patch adds support for passing tables as matrices (or vector) to a Calc source block through the :var parameter. There might be a better way to do it than manually construct the data structure expected by Calc for a matrix but given that it rarely sees changes in this area, it shouldn't b