all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problems with inline source blocks
@ 2019-05-27 16:47 Christian Heinrich
  2019-05-28 16:39 ` Berry, Charles
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Heinrich @ 2019-05-27 16:47 UTC (permalink / raw)
  To: Emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1467 bytes --]

Hi everyone,

several issues with inline source blocks:

1) https://orgmode.org/manual/Exporting-code-blocks.html states:

> The :exports header arguments control exporting code blocks only and
> not inline code:

but https://orgmode.org/manual/Using-Header-Arguments.html#Using-Header-Arguments gives as example:

> src_haskell[:exports both]{fac 5}

Which one is true?

2) I cannot get the results of inline blocks to be exported.

When I have a file that contains:

> Test: src_R[:exports results]{4*4} {{{results(=16=)}}}

then the code is always exported but the results are only exported up to
623cc4625950f84442d4cde0faa9cc3ea0233283

but starting from 65ebb128bc380fe4795dedd655d6f7b685249842
the results macro is ignored and the result never appears.

Looking at online documentation (other projects) like 
https://org-babel.readthedocs.io/en/latest/eval/#inline-code-blocks I realize that this may be a
problem in general (look at the Example sections, such as "The answer to 2 + 3 is .")


3) The source block never gets evaluated. I tried 
src_sh{touch /tmp/test21.txt}

but this file doesn't get created, only when I execute it directly.

Can anyone point out what I'm doing wrong, or is this actually a bug? I can't even get a basic
source block like

#+begin_src R :results output :session *R* :exports none
5*5
#+end_src

to ignore the code when exporting (but it's not evaluated).


Thanks!
Christian

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-29  2:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-27 16:47 Problems with inline source blocks Christian Heinrich
2019-05-28 16:39 ` Berry, Charles
2019-05-29  2:05   ` Outdated manual web pages left in place WAS: " Berry, Charles

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.