emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <eric.schulte@gmx.com>
To: "Luis Muñiz" <org-mode@lmunix.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Can't tangle inline source code
Date: Fri, 17 Aug 2012 13:57:44 -0600	[thread overview]
Message-ID: <87wr0xz3yf.fsf@gmx.com> (raw)
In-Reply-To: <CAOiqyq7a=rmvk-Kd96wiE6iUSjK-L4rjYWBUtvs41Q3=7NUMvA@mail.gmail.com> ("Luis Muñiz"'s message of "Fri, 17 Aug 2012 19:42:04 +0200")

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

      reply	other threads:[~2012-08-17 19:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-17 17:42 Can't tangle inline source code Luis Muñiz
2012-08-17 19:57 ` Eric Schulte [this message]

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=87wr0xz3yf.fsf@gmx.com \
    --to=eric.schulte@gmx.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=org-mode@lmunix.net \
    /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).