From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] Silent output in Org, but verbose export Date: Tue, 06 Sep 2011 10:37:28 -0600 Message-ID: <87hb4pr3va.fsf@gmail.com> References: <80y5y1el3u.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0zDV-0000pk-NP for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 13:13:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0zDQ-0007c9-8b for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 13:13:45 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:37554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0zDQ-0007aj-2p for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 13:13:40 -0400 Received: by mail-iy0-f169.google.com with SMTP id v1so9298980iag.0 for ; Tue, 06 Sep 2011 10:13:39 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org "Sebastien Vauban" writes: > Hi Eric, > > Currently, the following does not seem possible: > > #+begin_src sh :results silent :exports results > echo "I want to see this in HTML/PDF, but not in Org" > #+end_src > > Is there a way to do so? That is: > - have no results inserted in the Org file > - well inserted when exporting the Org file > > Best regards, > Seb Hi Seb, While this functionality isn't explicitly built into Org-mode the following should work... #+begin_src sh :results (if org-current-export-file "replace" "silent") :exports both echo "I want to see this in HTML/PDF, but not in Org" #+end_src Best -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/