From mboxrd@z Thu Jan 1 00:00:00 1970 From: cberry@tajo.ucsd.edu Subject: Re: Code vanishes on export Date: Wed, 24 Aug 2011 10:36:25 -0700 Message-ID: <87wre2ogo6.fsf@tajo.ucsd.edu> References: <20110824101326.GA13980@panahar> <87liui7vxu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwHym-0005r8-Rv for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 14:15:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwHyl-0007mD-Eh for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 14:15:08 -0400 Received: from lo.gmane.org ([80.91.229.12]:37248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwHyl-0007ly-7h for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 14:15:07 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QwHyi-0007TQ-OD for emacs-orgmode@gnu.org; Wed, 24 Aug 2011 20:15:04 +0200 Received: from tajo.ucsd.edu ([137.110.122.165]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Aug 2011 20:15:04 +0200 Received: from cberry by tajo.ucsd.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Aug 2011 20:15:04 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org suvayu ali writes: > Hi Eric, > > On Wed, Aug 24, 2011 at 3:58 PM, Eric Schulte wrote: >> Vikas Rawal writes: >> >>> I obviously do not want the code to be removed from my org file. >>> >> >> There are ways of controlling whether code or results or both or neither >> are included in code export. >> > > As far as I understand from Vikas' last remark, his org file is getting > changed. FWIW, I experienced this myself. "#+begin_src R" blocks vanished from the *.org file during export (but I was saved by version control!). I think this behavior showed up after 7.7, but I cannot reproduce it now (I did a git pull at release_7.7.170.gcaaad.dirty and have since modified the *.org file on which it happened). IIRC, it did not happen for exports when :export never was set for the buffer and not circumvented by '#+begin_src R :eval t'. Maybe this has (coincidentally) been corrected by the recent update of ob-exp.el, ob.el, and org-exp-blocks.el? Chuck -- Charles C. Berry