Re: [O] Tangling org file with nested org source block

2017-10-20 Thread Thibault Marin
Following-up on the issue I reported some time ago with tangling of nested source blocks, I would like to propose a patch for review. Before the patch, the following file: , | #+PROPERTY: header-args :tangle output.org | | #+BEGIN_SRC org | | ,* Test | | ,#+BEGIN_SRC org | ,,#+BEGIN_SRC

Re: [O] function for inserting a block

2017-10-20 Thread Kaushal Modi
On Fri, Oct 20, 2017 at 5:15 PM Eric Abrahamsen wrote: > The template really only inserts the block type, not anything specific > like the source language or export backend. Right, but based on the code you have, you can easily add "SRC org", "SRC emacs-lisp" to the

Re: [O] function for inserting a block

2017-10-20 Thread Eric Abrahamsen
Kaushal Modi writes: > Also, if the type is "src", shouldn't the point end up after "#+BEGIN_SRC"? > Because the user will anyways need to type something there. My original version did that. It might be nice to still do that selectively if the user adds a SRC or EXPORT

Re: [O] function for inserting a block

2017-10-20 Thread Eric Abrahamsen
Kaushal Modi writes: > On Fri, Oct 20, 2017 at 2:07 PM Eric Abrahamsen > wrote: > > Okay, here's another version, with a new keybinding and completion. The > completion strings are uppercase, which might not always be the right > thing, but

Re: [O] function for inserting a block

2017-10-20 Thread Kaushal Modi
Also, if the type is "src", shouldn't the point end up after "#+BEGIN_SRC"? Because the user will anyways need to type something there. Finally, I am trying to understand what this does: (if (bolp) (progn (skip-chars-backward " \n\t") (forward-line)) ;; snip ) If the point

Re: [O] function for inserting a block

2017-10-20 Thread Kaushal Modi
On Fri, Oct 20, 2017 at 2:07 PM Eric Abrahamsen wrote: > Okay, here's another version, with a new keybinding and completion. The > completion strings are uppercase, which might not always be the right > thing, but probably more often than not. > Hi Eric, I just tried

Re: [O] function for inserting a block

2017-10-20 Thread Eric Abrahamsen
Carsten Dominik writes: > Hi Eric, > > On Wed, Oct 18, 2017 at 4:58 PM, Eric Abrahamsen > wrote: > > Carsten Dominik writes: > > > Dear all, > > > > this is great added functionality that I have missed a lot myself. Thanks > for

Re: [O] OT: TUI applications

2017-10-20 Thread Marcin Borkowski
On 2017-10-18, at 18:47, Russell Adams wrote: > On Wed, Oct 18, 2017 at 10:55:26AM -0500, Grant Rettke wrote: >> On Wed, Oct 18, 2017 at 8:23 AM, Russell Adams >> >> https://www.gnu.org/software/emacs/manual/html_mono/widget.html > > That's

Re: [O] workflow, matlab+latex in org file

2017-10-20 Thread Uwe Brauer
> Here I obtain the following error: > Debugger entered--Lisp error: (void-function org-babel-execute:matlab) > org-babel-execute:matlab("x = [1, 2, 3, 4, 5];\nfprintf('|%d', x)" > ((:colname-names) (:rowname-names) (:result-params "replace" "output" > "drawer")

Re: [O] workflow, matlab+latex in org file

2017-10-20 Thread Uwe Brauer
>>> "John" == John Kitchin writes: This message is from July, but meanwhile I upgraded to Ubuntu 16.04 matlab 2016b which includes the python engine/kernel and finally I installed the Jupiter matlab kernel via pip, however I tried to follow your recommendations below: