From mboxrd@z Thu Jan 1 00:00:00 1970 From: Haider Rizvi Subject: Re: org-mode export behavior change in 9.2? Date: Sat, 12 Jan 2019 14:33:17 -0700 Message-ID: References: <8B78585C-6836-44CE-AC26-D5AA495790F1@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:53793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giQuI-0004Uc-Pi for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 16:33:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giQuG-0001xS-O3 for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 16:33:30 -0500 Received: from [195.159.176.226] (port=57589 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1giQuE-0001wS-Ol for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 16:33:28 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1giQs4-00034I-US for emacs-orgmode@gnu.org; Sat, 12 Jan 2019 22:31:12 +0100 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: emacs-orgmode@gnu.org "Berry, Charles" writes: >> On Jan 11, 2019, at 5:03 PM, Haider Rizvi wrote: >> >> 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! >> >> I don't think it was this way before? > > > AFAICS, nothing has changed in the way :session is handled for shell src blocks in a very > long time. > > Perhaps, you had set `:eval never-export' previously, but not now. ?? > >> Is there a way to not have it >> execute each shell block when trying to export. > > This seems to work as you would want: > > #+begin_src shell :session sh-pcnw3 :eval never-export > /usr/bin/say something # say it out loud! > #+end_src > > > If you can identify a release in which the behavior was as you said, it might be possible to > dig deeper. Chuck, thanks for responding. I've never had the never-export set. I'll try to go back and pinpoint when the change shows up if I can. 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! --