Re: [O] Programmatically insert source-blocks

2013-03-24 Thread Bastien
Hi Thorsten and Eric, Eric Schulte writes: > I don't see that Org-mode itself will ever want to programatically and > non-interactively insert a code block in an Org-mode file (if fact that > sounds rather dangerous to me), so I would vote against adding such a > function to the core. FWIW +1 h

Re: [O] Programmatically insert source-blocks

2013-03-23 Thread Eric Schulte
> So here is my FEATURE REQUEST: > > either modify `org-babel-demarcate-block' so that it can be used to > insert a language-specific code-block (with args?) non-interactively, or > add something like `org-insert-block' to Org-mode's core. I would prefer > signature > > ,---

Re: [O] Programmatically insert source-blocks

2013-03-20 Thread Thorsten Jolitz
Christian Moe writes: Hi Christian, > Here's one way, and pointers to more: > http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00406.html thanks for the links. I mean, it is not t difficult to write a function like ,-- |

Re: [O] Programmatically insert source-blocks

2013-03-20 Thread Christian Moe
Hi, Thorsten, Here's one way, and pointers to more: http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00406.html Yours, Christian Thorsten Jolitz writes: > Hi List, > > it probably a command everybody knows, but I looked for it several times > and just missed it: 'insert a source-blo

[O] Programmatically insert source-blocks

2013-03-20 Thread Thorsten Jolitz
Hi List, it probably a command everybody knows, but I looked for it several times and just missed it: 'insert a source-block'. I know about Chap. 15.2. of the manual (Easy Templates), thats not what I mean. To reformulate my question: Why doesn't (the most relevant function I have found) ,-