From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: org-mode export behavior change in 9.2? Date: Sun, 13 Jan 2019 17:29:56 +0000 Message-ID: References: <8B78585C-6836-44CE-AC26-D5AA495790F1@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gijaH-0000w2-1E for emacs-orgmode@gnu.org; Sun, 13 Jan 2019 12:30:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gijaF-0005rj-7X for emacs-orgmode@gnu.org; Sun, 13 Jan 2019 12:30:04 -0500 Received: from iport-acv5-out.ucsd.edu ([132.239.0.10]:13162) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1gijaD-0005pU-8l for emacs-orgmode@gnu.org; Sun, 13 Jan 2019 12:30:03 -0500 In-Reply-To: Content-Language: en-US Content-ID: <0C2C40C24EA8504FA8B2F999CA7F2F1C@AD.UCSD.EDU> 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: Haider Rizvi Cc: org-mode-email > On Jan 12, 2019, at 1:33 PM, Haider Rizvi wrote: >=20 > "Berry, Charles" writes: >=20 >>> On Jan 11, 2019, at 5:03 PM, Haider Rizvi wrote: >>>=20 >>> I've been using literate programming approach with org-babel for a >>> while. I just noticed that with 9.2, when I try to export (c-c c-e h >>> o) an org doc / section, any shell blocks with a named session are >>> executed as it is exporting to html! >>>=20 >>> I don't think it was this way before? >>=20 >>=20 >> AFAICS, nothing has changed in the way :session is handled for shell src= blocks in a very >> long time. >>=20 >> Perhaps, you had set `:eval never-export' previously, but not now. ?? >>=20 >>> Is there a way to not have it >>> execute each shell block when trying to export. >>=20 >> This seems to work as you would want: >>=20 >> #+begin_src shell :session sh-pcnw3 :eval never-export >> /usr/bin/say something # say it out loud! >> #+end_src >>=20 >>=20 >> If you can identify a release in which the behavior was as you said, it = might be possible to >> dig deeper. >=20 > Chuck, thanks for responding. >=20 > I've never had the never-export set. I'll try to go back and pinpoint > when the change shows up if I can. >=20 > Is the difference between named session and without it expected? With > the named session, the block is executed on export, and without it, it > is not executed! With the default `:exports code' (your case) or with `:exports none' the di= fference is expected. You can read `org-babel-exp-do-export' for details. If I were you I wouldn't spend much time trying to run this down. I'd just= use `:eval never-export'. It seems like that is the behavior you want. Chuck=