emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to override ":eval no" in call lines?
@ 2015-01-15 14:55 Sebastien Vauban
  2015-01-22  8:28 ` Sebastien Vauban
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastien Vauban @ 2015-01-15 14:55 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

In a long document, I must have ":eval no" at file level, as this is the
common setting for most code blocks. However, how do I unset that for
some call lines.

Export this ECM (to HTML, for example) and see for yourself that it does
not seem evident...

--8<---------------cut here---------------start------------->8---
#+TITLE:     ECM to be exported

#+PROPERTY:  eval no
#+PROPERTY:  results none

* Results
  :PROPERTIES:
  :exports:  results
  :results:  replace
  :END:

** Square

Here nothing gets executed: neither the code block, nor the call lines...

#+name: square
#+begin_src emacs-lisp :tangle no :var x=1
(* x x)
#+end_src

2 x 2 = call_square(x=2).

3 x 3 = call_square[:eval yes](x=3).

** Plus

Here, ":eval yes" (or even ":eval foo" FWIW) allows the code block to get
executed at export:

#+name: plus
#+begin_src emacs-lisp :tangle no :var x=4 :eval foo
(+ x x)
#+end_src

But none of the call lines gets executed...

5 + 5 = call_plus(x=5).

6 + 6 = call_plus[:eval yes](x=6).

So, how do I override the ":eval no" specified at the file level?
--8<---------------cut here---------------end--------------->8---

Any idea?

Best regards,
  Seb

-- 
Sebastien Vauban

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

end of thread, other threads:[~2015-02-09 17:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-15 14:55 How to override ":eval no" in call lines? Sebastien Vauban
2015-01-22  8:28 ` Sebastien Vauban
2015-01-22 16:50   ` Charles C. Berry
2015-01-23 11:44     ` Sebastien Vauban
2015-01-23 19:53       ` Charles C. Berry
     [not found]         ` <alpine.OSX.2.00.1501231149060.528-iDQ3frm8jJiryYnjg5slPZa4wMfmKMrbhPhL2mjWHbk@public.gmane.org>
2015-02-09 14:43           ` Sebastien Vauban
2015-02-09 17:54             ` Charles C. Berry

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