emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-babel-expand-src-block behavior


From: Nicolas Goaziou
Subject: Re: [O] org-babel-expand-src-block behavior
Date: Mon, 14 Aug 2017 16:25:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hello,

Ken Mankoff <address@hidden> writes:

> Is there a way to get variables into org-edit-special? Maybe by pre-pending
> C-u to C-c '?

The problem is not getting the variables into the remote editing buffer.
As you noticed, we would only need to remove the read-only status from
`org-babel-expand-src-block' output. The difficulty is writing back to
the source buffer. You need to mark somehow the original contents of the
src block and be able to retrieve it upon exiting the buffer.

Also, the remote editing buffer is not really suited for debugging.
Since it is not associated to a file, some compilers refuse to run the
code in there (e.g., asymptote blocks).

> How do others debug code with input variables?

I expand everything, copy it and write it into a temporary file. I do
the debugging in the temp file. When I'm satisfied, I copy the contents
of the file back into the remote editing buffer. Nothing fancy.


Regards,

-- 
Nicolas Goaziou



reply via email to

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