* Can't tangle inline source code
@ 2012-08-17 17:42 Luis Muñiz
2012-08-17 19:57 ` Eric Schulte
0 siblings, 1 reply; 2+ messages in thread
From: Luis Muñiz @ 2012-08-17 17:42 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can't tangle inline source code
2012-08-17 17:42 Can't tangle inline source code Luis Muñiz
@ 2012-08-17 19:57 ` Eric Schulte
0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2012-08-17 19:57 UTC (permalink / raw)
To: Luis Muñiz; +Cc: emacs-orgmode
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-mode@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-17 19:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-17 17:42 Can't tangle inline source code Luis Muñiz
2012-08-17 19:57 ` Eric Schulte
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.