From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-babel-expand-src-block behavior Date: Mon, 14 Aug 2017 16:25:14 +0200 Message-ID: <87inhq8bw5.fsf@nicolasgoaziou.fr> References: <87wp693voj.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhGJ0-0004Ot-Kp for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 10:25:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhGIw-0002iS-Go for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 10:25:22 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:45982) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dhGIw-0002fc-A8 for emacs-orgmode@gnu.org; Mon, 14 Aug 2017 10:25:18 -0400 In-Reply-To: (Ken Mankoff's message of "Sat, 12 Aug 2017 20:11:40 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Ken Mankoff Cc: Org Mode Hello, Ken Mankoff 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