From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Girard Subject: [Babel] [possible bug] Empty src block prevents other block to expand Date: Sun, 22 Jun 2014 19:52:07 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WylwM-0008UP-UK for emacs-orgmode@gnu.org; Sun, 22 Jun 2014 13:52:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WylwM-0005Za-3w for emacs-orgmode@gnu.org; Sun, 22 Jun 2014 13:52:30 -0400 Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]:48844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WylwL-0005ZD-Qj for emacs-orgmode@gnu.org; Sun, 22 Jun 2014 13:52:30 -0400 Received: by mail-lb0-f181.google.com with SMTP id p9so3573724lbv.12 for ; Sun, 22 Jun 2014 10:52:27 -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: emacs-orgmode The empty src block at the beginning of the following file prevents "capture-tmpl" to expand when tangling. Admittedly, this empty src block shouldn't exist in the first place, it's just a residue of some former confg of mine that didn't cause any problem until I upgraded Org to the latest ELPA package (8.2.7a-elpaplus -- 20140619). The test file is ---8<------- * Empty org block #+begin_src org :noweb yes #+end_src * Other blocks #+name: capture-tmpl #+begin_src org :results value ,* A :PROPERTIES: :ID: %(org-id-new) :END: #+end_src #+name: capture #+begin_src emacs-lisp :tangle no ("C" "Capture" entry " <>") #+end_src #+begin_src emacs-lisp :noweb yes (add-to-list 'org-capture-templates ' <> 'append) #+end_src ---8<------- And the Makefile I used is simply ---8<------- all: conf.el %.el: %.org emacs --batch -Q -l ob-tangle -l ob-org \ --eval '(setq org-babel-use-quick-and-dirty-noweb-expansion t)' \ --eval '(setq org-confirm-babel-evaluate nil)' \ --eval '(org-babel-tangle-file "$<" "$@" "emacs-lisp")' ---8<------- Cheers, Nicolas