[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [Babel] [possible bug] Empty src block prevents other block to expan
From: |
Nicolas Girard |
Subject: |
[O] [Babel] [possible bug] Empty src block prevents other block to expand |
Date: |
Sun, 22 Jun 2014 19:52:07 +0200 |
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 "
<<capture-tmpl>>")
#+end_src
#+begin_src emacs-lisp :noweb yes
(add-to-list 'org-capture-templates '
<<capture>> '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
- [O] [Babel] [possible bug] Empty src block prevents other block to expand,
Nicolas Girard <=