1 line
825 B
Plaintext
1 line
825 B
Plaintext
<!-- SC_OFF --><div class="md"><p>I need to execute a source code block programatically, ie the cursor must retain its current position after execution.</p> <p>What I have in mind is give the block a name, search for the name, move the cursor 2 lines down to execute <code>org-ctrl-c-ctrl-c</code>, then return to the original location because I used <code>save-excursion</code>.</p> <p>Is there some existing API for this task?</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/vfclists"> /u/vfclists </a> <br/> <span><a href="https://www.reddit.com/r/orgmode/comments/plv9qf/what_is_the_elegant_way_to_execute_a_source_code/">[link]</a></span>   <span><a href="https://www.reddit.com/r/orgmode/comments/plv9qf/what_is_the_elegant_way_to_execute_a_source_code/">[comments]</a></span> |