From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: New exporter - publishing org files doesn't include :tangle Date: Thu, 25 Apr 2013 23:15:47 -0400 Message-ID: <877gjqoucc.fsf@norang.ca> References: <8761zcrp24.fsf@norang.ca> <8738ug9f6w.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVZ8a-0008Ut-0i for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 23:15:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVZ8Y-0000FQ-Ow for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 23:15:51 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:47532 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVZ8Y-0000FH-CK for emacs-orgmode@gnu.org; Thu, 25 Apr 2013 23:15:50 -0400 In-Reply-To: <8738ug9f6w.fsf@gmail.com> (Nicolas Goaziou's message of "Wed, 24 Apr 2013 16:27:35 +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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Bernt Hansen writes: > >> James Yuan noticed that the .org file that is published with my document >> (http://doc.norang.ca/org-mode.org does not contain :tangle on any of >> the source blocks. >> >> One of the uses of this document is to pull up the file and tangle it to >> create an emacs configuration but this seems to be broken in 8.0. > > This is not directly related to the export framework. > > For some reason, Babel removes all properties from the opening string of > a block when evaluated. IOW > > #+BEGIN_SRC emacs-lisp :exports code :tangle yes > (+ 1 1) > #+END_SRC > > becomes > > #+BEGIN_SRC emacs-lisp > (+ 1 1) > #+END_SRC > > One workaround is to add Babel properties on a #+header: affiliated > keyword instead as > > #+header: :tangle yes > #+BEGIN_SRC emacs-lisp :exports code > (+ 1 1) > #+END_SRC > > becomes > > #+header: :tangle yes > #+BEGIN_SRC emacs-lisp > (+ 1 1) > #+END_SRC > > > Regards, Hi Nick, So far my attempts using this workaround have failed and I can't get :tangle in my exported org file. I think I also would prefer to have the :exports value in the .org source as well so it's a true representation of the source. I'll give this another try again later. Regards, Bernt