[O] Can't tangle inline source code

2012-08-17 Thread Luis Muñiz
Hi there!  I'm having some problems while tangling.  More
specifically, I can tangle a src block of code:
#+BEGIN_SRC emacs-lisp :tangle block.el :results silent
  (format-time-string %Y/%m_%b/%d_%a :: [%H:%M:%S]
  )
#+END_SRC

But I can't tangle the inlined equivalent form:
  src_emacs-lisp[ :tangle inline.el :results silent
]{(format-time-string %Y/%m_%b/%d_%a :: [%H:%M:%S])}

I'm using org-mode version 7.8.11 from the GIT repository (updated a
couple hours ago, release_7.8.11-505-g952d72), and Emacs 23.2.1.
Same results using shell code (sh), and/or with Org Version 7.4.

In order to repeat the test, simply paste this whole message in an
Emacs (org-)buffer and tangle (C-c C-v t) it.  It should generate two
files block.el and inline.el, but only the former appears.

Regards,
--
  - Luis Muñiz



Re: [O] Can't tangle inline source code

2012-08-17 Thread Eric Schulte
I don't believe tangling is supported for inline code blocks.

The original reason for implementing inline code blocks was purely for
the inclusion of inline results in export.

Best,

Luis Muñiz org-m...@lmunix.net writes:

 Hi there!  I'm having some problems while tangling.  More
 specifically, I can tangle a src block of code:
 #+BEGIN_SRC emacs-lisp :tangle block.el :results silent
   (format-time-string %Y/%m_%b/%d_%a :: [%H:%M:%S]
   )
 #+END_SRC

 But I can't tangle the inlined equivalent form:
   src_emacs-lisp[ :tangle inline.el :results silent
 ]{(format-time-string %Y/%m_%b/%d_%a :: [%H:%M:%S])}

 I'm using org-mode version 7.8.11 from the GIT repository (updated a
 couple hours ago, release_7.8.11-505-g952d72), and Emacs 23.2.1.
 Same results using shell code (sh), and/or with Org Version 7.4.

 In order to repeat the test, simply paste this whole message in an
 Emacs (org-)buffer and tangle (C-c C-v t) it.  It should generate two
 files block.el and inline.el, but only the former appears.

 Regards,
 --
   - Luis Muñiz


-- 
Eric Schulte
http://cs.unm.edu/~eschulte