From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: org-babel-expand-src-block behavior Date: Sat, 12 Aug 2017 06:40:47 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgOEN-0005bv-Ib for emacs-orgmode@gnu.org; Sat, 12 Aug 2017 00:41:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgOEK-0005f2-Gv for emacs-orgmode@gnu.org; Sat, 12 Aug 2017 00:40:59 -0400 Received: from mail-yw0-x235.google.com ([2607:f8b0:4002:c05::235]:33422) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgOEK-0005ek-Br for emacs-orgmode@gnu.org; Sat, 12 Aug 2017 00:40:56 -0400 Received: by mail-yw0-x235.google.com with SMTP id p68so32522430ywg.0 for ; Fri, 11 Aug 2017 21:40:54 -0700 (PDT) Received: from parma.local ([152.115.61.162]) by smtp.gmail.com with ESMTPSA id q125sm874752ywd.98.2017.08.11.21.40.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Aug 2017 21:40:52 -0700 (PDT) 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: Org Mode Hi, I've just learned about =org-babel-expand-src-block= (from [1]) which seems like an improvement over =org-edit-special=, because variables are expanded. But I notice two issues with it, and I'm wondering if these are intentional or bugs, or if there are work-arounds. First, the buffer is read-only (which someone else claims is a bug [2]), and second, if I make changes and then exit the expanded block (via C-') without saving, the changes are lost. If I enter =org-edit-special= and exit w/o saving, the changes are propagated back to the buffer. Cheers, -k. Org version: Org mode version 9.0.9 (9.0.9-68-g492420-elpaplus @ /Users/mankoff/.emacs.d/elpa/org-plus-contrib-20170807/) [1] https://emacs.stackexchange.com/questions/34821/pass-variable-from-src-block-to-org-edit-src-code [2] https://emacs.stackexchange.com/questions/29368/org-babel-noweb-expansion-when-sending-c-c-buffer-to-python-shell