I need to execute a source code block programatically, ie the cursor must retain its current position after execution.

What I have in mind is give the block a name, search for the name, move the cursor 2 lines down to execute org-ctrl-c-ctrl-c, then return to the original location because I used save-excursion.

Is there some existing API for this task?

submitted by /u/vfclists
[link] [comments]