emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: sebastien.miquel@posteo.eu, emacs-orgmode@gnu.org
Subject: Re: org-babel block with :exports code that gets evaluated on export
Date: Tue, 26 May 2020 22:25:33 -0500	[thread overview]
Message-ID: <87r1v683f6.fsf@fastmail.fm> (raw)
In-Reply-To: <09e020a4-b71d-cf99-a9c7-3552c3e00eee@posteo.eu>

Sébastien Miquel <sebastien.miquel@posteo.eu> writes:

> Is there a way to have an org-babel block which only exports its code 
> but still gets evaluated when exporting ?

I think you can do something like this:

  #+begin_src emacs-lisp :exports both :results none
    (setq my-variable t)

Or, if you want to pass the results to another block you could use
":results output silent" or ":results value silent."



      reply	other threads:[~2020-05-27  3:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01 21:25 org-babel block with :exports code that gets evaluated on export Sébastien Miquel
2020-05-27  3:25 ` Matthew Lundin [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:

  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=87r1v683f6.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=sebastien.miquel@posteo.eu \


* 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


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