emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Babel eval w/ C-c C-c but not (org-babel-execute-buffer)


From: John Kitchin
Subject: Re: [O] Babel eval w/ C-c C-c but not (org-babel-execute-buffer)
Date: Wed, 2 Oct 2019 17:59:48 -0400

I guess this is not easily possible without some advice. When you run org-babel-execute-buffer the cursor moves into each block, so you need to save the point before you run it, and then test if point has moved when org-babel-execute-src-block is called.

It might be easier to write your own version of org-babel-execute-buffer for this. You could use org-babel-map-src-blocks as the base, and in each block run a test that determines if it should be executed. 

John

-----------------------------------
Professor John Kitchin 
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803


On Wed, Oct 2, 2019 at 4:48 PM Ken Mankoff <address@hidden> wrote:
Hello,

I'm interested in having code blocks that do not eval when I run (org-babel-execute-buffer) but do when the cursor is within them and I explicitly want to execute them by entering C-c C-c.

I cannot get this behavior playing around with the :eval header argument. Is the behavior I described possible?

Thanks,

  -k.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]