From: Nicolas Girard <girard.nicolas@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: [Babel] [possible bug] Empty src block prevents other block to expand
Date: Sun, 22 Jun 2014 19:52:07 +0200 [thread overview]
Message-ID: <CANMKmeft59V00nF0nA-4tS58QnB9A11UiKgkZUz2hQ6Ff5N-Mg@mail.gmail.com> (raw)
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
next reply other threads:[~2014-06-22 17:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-22 17:52 Nicolas Girard [this message]
2014-06-23 15:56 ` [Babel] [possible bug] Empty src block prevents other block to expand Charles Berry
2014-06-23 16:20 ` Nicolas Girard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANMKmeft59V00nF0nA-4tS58QnB9A11UiKgkZUz2hQ6Ff5N-Mg@mail.gmail.com \
--to=girard.nicolas@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).