From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: How to override ":eval no" in call lines? Date: Thu, 22 Jan 2015 09:28:14 +0100 Message-ID: <86lhkv1aox.fsf@example.com> References: <86oaq02ivd.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, May I bump up this thread? Sebastien Vauban wrote: > 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... > > #+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? > > Any idea? Best regards, Seb -- Sebastien Vauban