From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: [NOT SOLVED: BUG?] Date: Thu, 03 Aug 2017 19:19:39 +0000 Message-ID: <87o9rw5uic.fsf@mat.ucm.es> References: <87poce6ukv.fsf@mat.ucm.es> <877eyl6qrt.fsf@mat.ucm.es> <8737996psd.fsf_-_@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddLez-0008Ap-Qi for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 15:19:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddLex-0005XY-02 for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 15:19:53 -0400 Received: from [195.159.176.226] (port=48935 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddLew-0005W4-P6 for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 15:19:50 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ddLeo-0007dM-Fn for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 21:19:42 +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: emacs-orgmode@gnu.org >>> "Berry," == Berry, Charles writes: >> On Aug 3, 2017, at 1:04 AM, Uwe Brauer wrote: >> >> >> >> I just checked and situation is absurd. Here is the minimal example: >> [snip] >> >> When I set org-export-babel-evaluate nil, then the code is *not* >> evaluated, *but* the code block *and* the result are exported. >> > [snip] >> When I set org-export-babel-evaluate to t, export but say no to the >> question whether or not to evaluate, *only* the result is exported, >> which is what I want. >> >> Is this a *bug*? I wait a day, then I will file a bug report. > No. It is *obsolete* and its replacement is not recommended for your application. Thanks I did not finish reading the documentation, my bad So I tried #+begin_src matlab :results output latex :exports results :eval never-export X=[1]; disp('\begin{displaymath}') fprintf('X&=%g\\\\ \n', X) disp('\end{displaymath}') #+end_src which then worked as expected. Before I played around with code I found in https://emacs.stackexchange.com/questions/17744/is-there-a-way-to-make-org-mode-ignore-src-blocks-when-exporting-to-html But your suggestion is cleaner. Thanks Uwe