emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Programmatically insert source-blocks
@ 2013-03-20 19:36 Thorsten Jolitz
  2013-03-20 20:43 ` Christian Moe
  0 siblings, 1 reply; 5+ messages in thread
From: Thorsten Jolitz @ 2013-03-20 19:36 UTC (permalink / raw)
  To: emacs-orgmode


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) 

,------------------------------------------
| (org-babel-demarcate-block &optional ARG)
`------------------------------------------

have a few more optional arguments, e.g. like this

,----------------------------------------------------------
| (org-babel-demarcate-block &optional LANG ARG &rest args)
`----------------------------------------------------------

so that it can be called (e.g.) like this

,----------------------------------------------------------------------
| (org-babel-demarcate-block &optional "emacs-lisp" nil :results output)
`----------------------------------------------------------------------

without asking the user for input (inserting a new src-block around
point or region)? 

There are so many functions that deal with source-blocks, but the most
basic one - insert a new src-block for language xyz with args u v w - is
not there. At least not for non-interactive use. At least I did not find
it ;)

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-25  6:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-20 19:36 Programmatically insert source-blocks Thorsten Jolitz
2013-03-20 20:43 ` Christian Moe
2013-03-20 22:03   ` Thorsten Jolitz
2013-03-23 22:35     ` Eric Schulte
2013-03-25  5:54       ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).