emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* header-args property
@ 2021-04-01  8:23 Michael Gauland
  2021-04-01 11:04 ` Greg Minshall
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Gauland @ 2021-04-01  8:23 UTC (permalink / raw)
  To: emacs-orgmode

I'm confused about the use of the header-args property. It works as
expected when I
export a file, but not when I evaluate a code block manually. For example,
consider this file:

    #+PROPERTY: header-args :var x="Hello" :exports both

    #+begin_src shell
      echo X is $x

When I export, the result of the code block is "X is Hello", but when I
use C-c
C-c to evaluate the block in emacs, I get "X is"--the variable isn't

In practice, this means I generally define things like :session for each
rather than using a file-level property. Is this behaviour expected? 

Kind regards,


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

end of thread, other threads:[~2021-04-01 12:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01  8:23 header-args property Michael Gauland
2021-04-01 11:04 ` Greg Minshall
2021-04-01 11:10 ` ian martins
2021-04-01 11:47 ` Eric S Fraga

Code repositories for project(s) associated with this public inbox


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).