Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-11 Thread Nicolas Goaziou
Hello, Rasmus writes: > Nicolas, are there any public interfaces to make ox export like > interfaces? No, there isn't. However, Org provides `org-mks'. Regards, -- Nicolas Goaziou

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-11 Thread Rasmus
Hi, >> Let me know when you want me to do the change to strings. > > No time like the present! I don't think there's anything else remaining > to be done. One stumbling block is how to input key strings to org-insert-structure-template. Currently, it employs read-key which is really fast. The

Re: [O] Problem with J Source Code Blocks in Org Mode

2017-12-11 Thread Nicolas Goaziou
Hello, Bill Harris writes: > I recently tried to set up J as described in http://orgmode.org/worg/ > org-contrib/babel/languages/ob-doc-J.html, starting by loading j-mode from > stable melpa, but I get an org-babel error output when I try to execute a J >

Re: [O] Irrelevant src blocks can break noweb expansion

2017-12-11 Thread Nicolas Goaziou
Hello, "Berry, Charles" writes: > I used to avoid this by `(setq org-babel-use-quick-and-dirty-noweb-expansion > t)'. > > This illustrates the issue: > > #+begin_src org > > ,* abc > > ,#+begin_src R :comment (message "running on empty") > > ,#+end_src > >

Re: [O] Is it possible to pass variable to variables of src block?

2017-12-11 Thread Ihor Radchenko
Hi David, One thing you can do is to make a code block, which will generate another code block, running your script with different arguments. Let me illustrate with a simple example: #+name: printecho #+BEGIN_SRC sh :var a=1 echo $a; #+END_SRC #+name: genscript #+BEGIN_SRC sh :var

Re: [O] Is it possible to pass variable to variables of src block?

2017-12-11 Thread Xi Shen
Hi Michael, Yes, I think this is a way to my previous question. But what I really want to achieve is to loop through a list of server names and execute a script on them. Say I have 20 different database server. How can I do a loop with each server? Regards, David On Wed, Dec 6, 2017 at 5:34

Re: [O] Bug: subtree archiving when Archive is not final headline yields bad visibility [8.2.10 (release_8.2.10 @ /usr/share/emacs/25.2+gg1+12/lisp/org/)]

2017-12-11 Thread Nicolas Goaziou
Allen Li writes: > Archiving DOES move point, it's just a question of where it moves > point to. It should not be moving point to the archived heading. > Examples (^ is point): > > * Foo > ** A > ** ^B > ** C > ** Archive :ARCHIVE:... > > Archiving to a

Re: [O] Bug: subtree archiving when Archive is not final headline yields bad visibility [8.2.10 (release_8.2.10 @ /usr/share/emacs/25.2+gg1+12/lisp/org/)]

2017-12-11 Thread Allen Li
On Mon, Dec 11, 2017 at 6:10 AM, Nicolas Goaziou wrote: > Hello, > > Allen Li writes: > >> On Wed, Dec 6, 2017 at 12:19 PM, Allen Li wrote: >>> (Can reproduce with Org 9.1.3, submitting with emacs -Q) >>> >>> Using a

Re: [O] Parsing org table from Linux command line

2017-12-11 Thread John Kitchin
I think you just put Listing 7 in a file called py_org_table.py on your Python path, or you could just integrate it into the script. ST writes: > Thank you very much! > > Is py_org_table.py part of a bigger library? Where can I find it? > > Thank you! > > > On Sun, 2017-12-10 at 18:12 -0800,

Re: [O] [PATCH]: Fix ob-haskell.el to work with custom ghci prompts

2017-12-11 Thread Nicolas Goaziou
Hello, Doro Rose writes: > Nicolas Goaziou writes: > >> Fair enough. Could you provide a proper commit message and send the >> patch again? > > Here's the patch. Applied. Thank you. Regards, -- Nicolas Goaziou

Re: [O] Bug: subtree archiving when Archive is not final headline yields bad visibility [8.2.10 (release_8.2.10 @ /usr/share/emacs/25.2+gg1+12/lisp/org/)]

2017-12-11 Thread Nicolas Goaziou
Hello, Allen Li writes: > On Wed, Dec 6, 2017 at 12:19 PM, Allen Li wrote: >> (Can reproduce with Org 9.1.3, submitting with emacs -Q) >> >> Using a file tmp.org: >> >> * Foo >> ** Archive :ARCHIVE: >> *** Test >> :PROPERTIES:

Re: [O] Bug: Inline src block results no longer exported

2017-12-11 Thread Nicolas Goaziou
Hello, "Berry, Charles" writes: > This commit > > --- > commit 5f5d82ed516b7b385a9258271becbfa247e94af3 > Author: Nicolas Goaziou > Date: Tue Nov 21 22:25:17 2017 +0100 > > Remove second pass for macro expansion > --- > > breaks the

Re: [O] Parsing org table from Linux command line

2017-12-11 Thread ST
Thank you very much! Is py_org_table.py part of a bigger library? Where can I find it? Thank you! On Sun, 2017-12-10 at 18:12 -0800, John Kitchin wrote: > Check out Listing 7 in > http://pubs.acs.org/doi/pdf/10.1021/acscatal.5b00538. > > It is a pretty minimal Python script to get data from a

Re: [O] Problems with Org-mode & Minted

2017-12-11 Thread jerome moliere
Hi all, thanks Alan , after unifying the syntax it works like a charm.. Problem solved!!! Kind regards J.MOLIERE - Mentor/J 2017-12-07 14:12 GMT+01:00 jerome moliere : > Thanks Alan I wondered about this strange syntax mix .. > I will investigate , following thi