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:53:59 -0400 Message-ID: <87sj2gq8s8.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]:43752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV15D-0001aJ-6d for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 10:54:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UV157-0005CS-N6 for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 10:54:07 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:33727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV157-0005CN-Jt for emacs-orgmode@gnu.org; Wed, 24 Apr 2013 10:54:01 -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 Thanks, I'll give that a try. I think this used to work but as long as I can get the same behaviour with your workaround that's fine with me. Regards, Bernt