[no subject]

2020-10-20 Thread Aaron Madlon-Kay
Hello, all. I would like to contribute this tweak that I have been using in my personal config (though in the form of advice). As with Python, in Ruby there is significant need to be able to specify the Ruby command invoked. For instance when managing dependencies with Bundler (which is very

[PATCH] ob-ruby.el: allow specification of ruby command w/header arg

2020-10-20 Thread Aaron Madlon-Kay
Using the :ruby header arg. * lisp/ob-ruby.el (org-babel-execute:ruby): Locally set `org-babel-ruby-command' using a header argument. TINYCHANGE --- lisp/ob-ruby.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/ob-ruby.el b/lisp/ob-ruby.el index 669c2eabf..80870c6c0 100644 ---

[PATCH] org-table: Add mode flag to enable Calc units simplification mode

2020-10-20 Thread Daniele Nicolodi
Hello, attached there are a few patches reworking the code, fixing the bug, and introducing a new mode flag to enable Calc's units simplification mode as discussed in a recent thread on the mailing list. I haven't updated the documentation. I can do it once we agree that this feature is a good i

Re: [PATCH] org-table: Add mode flag to enable Calc units simplification mode

2020-10-20 Thread Eric S Fraga
Just to say that I have done a quick test with this and I really like it. Simple calculations with units of mol/s and mol/min work perfectly. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4-61-ga88806.dirty

Re: [PATCH] org-table: Add mode flag to enable Calc units simplification mode

2020-10-20 Thread Daniele Nicolodi
On 20/10/2020 15:44, Eric S Fraga wrote: > Just to say that I have done a quick test with this and I really like > it. Simple calculations with units of mol/s and mol/min work perfectly. Thank you for testing Eric. To cover the use case of monetary quantities discussed in the other thread I woul

Re: [PATCH] org-table: Add mode flag to enable Calc units simplification mode

2020-10-20 Thread Eric S Fraga
Hello again, Following up on myself. I'm seeing some strange behaviour although unit calculations are working nicely. For instance, this table: #+begin_src org | stream | a| b| c| total| x_a | x_b | x_c | | | |

Re: [PATCH] org-table: Add mode flag to enable Calc units simplification mode

2020-10-20 Thread Eric S Fraga
On Tuesday, 20 Oct 2020 at 16:00, Daniele Nicolodi wrote: > To cover the use case of monetary quantities discussed in the other > thread I would like to also add an `m?` (or M?) flag that can combine > the effect of the existing `f?` flag and the new `u` flag. But I don't > know if sparing one char

Re: [PATCH] org-table: Add mode flag to enable Calc units simplification mode

2020-10-20 Thread Daniele Nicolodi
On 20/10/2020 16:19, Eric S Fraga wrote: > Hello again, > > Following up on myself. I'm seeing some strange behaviour although unit > calculations are working nicely. For instance, this table: > > #+begin_src org > | stream | a| b| c| total| >

Re: [PATCH] org-table: Add mode flag to enable Calc units simplification mode

2020-10-20 Thread Daniele Nicolodi
On 20/10/2020 16:32, Daniele Nicolodi wrote: > On 20/10/2020 16:19, Eric S Fraga wrote: >> Hello again, >> >> Following up on myself. I'm seeing some strange behaviour although unit >> calculations are working nicely. For instance, this table: >> >> #+begin_src org >> | stream | a

Re: [PATCH] org-table: Add mode flag to enable Calc units simplification mode

2020-10-20 Thread Eric S Fraga
On Tuesday, 20 Oct 2020 at 16:53, Daniele Nicolodi wrote: > There are other funny Calc behaviors: if an expression results in a > number with an unit where the numerical part is exactly 1, the printed > result looses the numerical part and only the units are printed. Yes, this I'm used to (and it

Re: [PATCH] org-table: Add mode flag to enable Calc units simplification mode

2020-10-20 Thread Eric S Fraga
On Tuesday, 20 Oct 2020 at 16:32, Daniele Nicolodi wrote: > This may be because the org substitutes a "0" for the missing value, > thus an integer. This makes sense. Thank you. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4-61-ga88806.dirty

Re: [PATCH] ob-java

2020-10-20 Thread John Herrlin
Hey Ian, The changes list looks really nice! But I can't get the patch to work. The use case I have is this and it works fine in master. #+HEADER: :classname Main #+HEADER: :dir src #+HEADER: :cmdline -classpath ./rxjava-1.3.8.jar:. #+HEADER: :cmpflag -classpath ./rxjava-1.3.8.ja

Re: [PATCH] ob-java

2020-10-20 Thread John Herrlin
Hey, Did some debugging and found out that my class didn't contained =public= and the patch requires it to be. This works fine: #+HEADER: :classname Main #+HEADER: :dir src #+HEADER: :cmdline -classpath ./rxjava-1.3.8.jar:. #+HEADER: :cmpflag -classpath ./rxjava-1.3.8.jar #+BEGI

Bug: Can’t assign to hline relative reference

2020-10-20 Thread Dante Catalfamo
Hello, I'm trying to create a table where the third column between two hlines is set by a formula referencing the second column. Here is an example: | a | b | c | |---+---+| | row 1 | 12.00 | 144.00 | | row 2 | | 23.00 | |---+---+| | sum | 1

Re: [PATCH] ob-java

2020-10-20 Thread ian martins
Thanks for testing, and thanks for pointing that out. I will fix it so that `public` is optional. btw, in your example you didn't have to specify `:classname` since you defined the class name in the source block. btw2, did you notice that you can C-c C-c on source blocks that don't have main meth

Re: [PATCH] ob-java

2020-10-20 Thread John Herrlin
I did and it looks really good. The difference in this example: #+BEGIN_SRC java import rx.Observable; Observable.range(5, 3) .subscribe((Integer i) -> { System.out.println("Got: " + i); }, (Throwable t) -> { t.printStackTrace();},