Re: [PATCH] ob-sql.el: Add support for SAP HANA

2021-03-16 Thread Kyle Meyer
Robin Campbell Joy writes: > Subject: [PATCH] ob-sql.el: Add support for SAP HANA Thanks for the update. Pushed (b241c126b). > diff --git a/testing/lisp/test-ob-sql.el b/testing/lisp/test-ob-sql.el [...] > + > +(require 'org-test) > +(require 'ob-sql) I've dropped these two lines. For the fir

Re: How to get shell source blocks to read my profile?

2021-03-16 Thread Tim Cross
George Mauer writes: > I do still wonder what would be the disadvantage of just configuring it to do > --login by default and doing all configuration in profile scripts. It would be > unconventional yes, but it would also make dynamic scoping of environment > variable effectively opt-in via -

Re: [PATCH] ob-sql.el: Add support for SAP HANA

2021-03-16 Thread Daniele Nicolodi
Hello Robin, from this patch I infer that you work with SAP. Can I bug you off-list with a few questions unrelated to org-mode but related to programmatically interact with SAP? Thank you. Best, Dan On 04/02/2021 08:55, Robin Campbell Joy wrote: > * lisp/ob-sql.el (org-babel-execute:sql, org-ba

Re: How to get shell source blocks to read my profile?

2021-03-16 Thread Nick Dokos
George Mauer writes: > I understand why you say that maxim but testing that this worked was the > first thing I did > and it does work. I was surprised as well. I haven't debugged all the way > into the eval > functions to see why this works but my guess is that the authors were pretty > smart

Re: Problems while trying to load feature

2021-03-16 Thread Nick Dokos
"Charles R (Charlie) Martin" writes: > This is a problem I’ve noticed as well. Now, I am a programmer — my > code or it’s descendants is still in the distribution — I do update > org mode regularly, and I get messages when I start up Emacs about > Org mode files that can’t be loaded. I wouldn’t b

Re: [PATCH] ob-sql.el: Add support for SAP HANA

2021-03-16 Thread Robin Campbell Joy
Hi, thank you very much for you feedback. Kyle Meyer wrote: >> This patch is large enough that copyright should be assigned to the FSF. >> Assuming you haven't already, are you willing to complete the copyright >> paperwork? I did this before sending the patch. >> It looks like many of the li

Re: Sharing variables between source blocks without session

2021-03-16 Thread Eric S Fraga
On Tuesday, 16 Mar 2021 at 09:56, Loris Bennett wrote: > How can I avoid having to declare the variable 'user' for both blocks? I imagine you could use a property, as in #+property: header-args :var user=loris or even make it specific for the particular language. (untested) -- : Eric S Fraga v

Re: How to get shell source blocks to read my profile?

2021-03-16 Thread George Mauer
I understand why you say that maxim but testing that this worked was the first thing I did and it does work. I was surprised as well. I haven't debugged all the way into the eval functions to see why this works but my guess is that the authors were pretty smart about figuring out which executable t

Re: [PATCH] Re: Bug: Plain https links with brackets are not recognised [9.4.4 (release_9.4.4-625-g763c7a @ /home/yantar92/.emacs.d/straight/build/org/)]

2021-03-16 Thread Ihor Radchenko
Maxim Nikulin writes: > I have tried to compare current, your, and a little modified your > regexps on several synthetic examples: Thanks! Your version is indeed cleaner. I updated the patch. It uses your version now with one group specification that I missed earlier. I also added tests from yo

Re: How to get shell source blocks to read my profile?

2021-03-16 Thread Maxim Nikulin
On 16/03/2021 00:49, George Mauer wrote:   shell-file-name: "/bin/zsh -i" I am afraid, you should be prepared to face some problem accidentally. The value of this variable is used to execute the specified file ("zsh -i" in the "/bin" directory, I do not think, you have such file), not as a p

Re: org-capture-template: table lines including newline of sorts

2021-03-16 Thread Charles Millar
On 3/16/21 3:34 AM, Uwe Brauer wrote: > On 3/15/21 5:00 PM, Uwe Brauer wrote: > My bad; I did not pay attention to a four line comment, so here it is > again, with the comment and final line for the template, etc. > (setq org-capture-template '( > . . . some capture templat

Re: org-capture: question about function to create template

2021-03-16 Thread Joost Kremers
Hi Ihor & No Wayman, Thanks for your replies. On Tue, Mar 16 2021, Ihor Radchenko wrote: > Joost Kremers writes: > >> ... I was wondering if there's any >> way for this function to access the state of the ongoing capture process. >> Specifically, it would be useful for me if the function can fin

Re: Sharing variables between source blocks without session

2021-03-16 Thread Loris Bennett
"Loris Bennett" writes: > Hi, > > I have a 'sh' source block which produces a table which I then want to > plot with a 'python' source block: > > #+NAME: code;raw_data > #+HEADER: :var user="loris" > > #+BEGIN_SRC sh > ps -u loris -o etimes= > #+END_SRC Oops, that should be #+NAME: code;raw_

Sharing variables between source blocks without session

2021-03-16 Thread Loris Bennett
Hi, I have a 'sh' source block which produces a table which I then want to plot with a 'python' source block: #+NAME: code;raw_data #+HEADER: :var user="loris" #+BEGIN_SRC sh ps -u loris -o etimes= #+END_SRC

Re: org-capture-template: table lines including newline of sorts

2021-03-16 Thread Uwe Brauer
> On 3/15/21 5:00 PM, Uwe Brauer wrote: > My bad; I did not pay attention to a four line comment, so here it is > again, with the comment and final line for the template, etc. > (setq org-capture-template '( > . . . some capture templates > ("s" "timeslip" tabl

SOLVED: Problems while trying to load feature

2021-03-16 Thread Ypo
Thanks, Nick. SOLVED :-) El 15/03/2021 a las 17:00, emacs-orgmode-requ...@gnu.org escribió: Message: 30 Date: Mon, 15 Mar 2021 11:15:29 -0400 From: Nick Dokos To:emacs-orgmode@gnu.org Subject: Re: Problems while trying to load feature Message-ID:<878s6o8n3i@alphaville.usersys.redhat.com> Con