emacs/var/elfeed/db/data/29/29a861e3366595d4c653377589a548d144cc6781
2022-01-03 12:49:32 -06:00

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 --> &#32; submitted by &#32; <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> &#32; <span><a href="https://www.reddit.com/r/orgmode/comments/plv9qf/what_is_the_elegant_way_to_execute_a_source_code/">[comments]</a></span>