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: Wed, 24 Apr 2013 10:52:55 -0400 Message-ID: <87wqrsq8u0.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]:43300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV14A-0000sX-Sc for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 10:53:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UV145-0004uy-RK for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 10:53:02 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:63618 helo=mho-01-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV145-0004un-OO for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 10:52:57 -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,