From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: regression with :export both :noweb strip-export [9.2 (9.2-elpa @ /home/adl/.emacs.d/elpa/org-20181230/)] Date: Sat, 19 Jan 2019 17:29:22 +0100 Message-ID: <877ef0bogt.fsf@nicolasgoaziou.fr> References: <87h8e94jsx.fsf@couscous.lrde.epita.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gktUx-0003Tq-9I for emacs-orgmode@gnu.org; Sat, 19 Jan 2019 11:29:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gktUv-00061b-AQ for emacs-orgmode@gnu.org; Sat, 19 Jan 2019 11:29:31 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:55355) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gktUs-0005xa-UB for emacs-orgmode@gnu.org; Sat, 19 Jan 2019 11:29:27 -0500 In-Reply-To: (Alexandre Duret-Lutz's message of "Wed, 16 Jan 2019 21:28:16 +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: Alexandre Duret-Lutz Cc: emacs-orgmode@gnu.org Hello, Alexandre Duret-Lutz writes: > On Tue, Jan 15, 2019 at 11:50 PM Alexandre Duret-Lutz wrote: >> Since I updated to org 9.2, the following idiom stopped working. >> >> ------------------ >> #+NAME: context >> #+BEGIN_SRC C++ :exports none >> #include >> int u = 0; >> #+END_SRC >> >> #+BEGIN_SRC C++ :exports both :noweb strip-export :results verbatim >> <> >> int main() >> { >> std::cout << "bar\n"; >> return u; >> } >> #+END_SRC >> ------------------ >> >> Upon export to html I'm expecting to see the second block of code with >> <> stripped away, followed by a block of text containing the >> result (bar). With Org 9.2 I don't get the latter, because the >> compilation of this small program fails during the export. Inspection >> of the temporary file passed to the compiler reveals that <> >> has been stripped away from the code passed as input to the compiler, >> not just from the code displayed in html. > > FWIW, reverting the change made to org-babel-exp-results in the following > patch seems to fix my issue. > > > commit 8e54cafeb286ea5eb25565a637b121a2f597c48b > Author: Nicolas Goaziou > Date: Sat Jun 23 23:04:45 2018 +0200 Fixed. Thank you. Regards, -- Nicolas Goaziou