From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: [PATCH] Respect org-export-babel-evaluate on export Date: Mon, 03 Jun 2013 12:04:00 -0500 Message-ID: <87k3mbxh1h.fsf@earlgrey.lan> References: <87txlgxz4e.fsf@earlgrey.lan>,<87ip1vgpdl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjYB1-000286-V5 for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 13:04:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjYAw-0000d8-QI for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 13:04:11 -0400 Received: from li424-160.members.linode.com ([50.116.34.160]:43001 helo=dustycloud.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjYAw-0000ct-Kn for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 13:04:06 -0400 In-reply-to: <87ip1vgpdl.fsf@gmail.com> 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Emacs-orgmode --=-=-= Content-Type: text/plain Here's such a file. The exact contents of it don't really matter. What's significant is you should see a "lol" appear in your *Messages* buffer... which shouldn't happen.... when exporting to anything while (setq org-export-babel-evaluate nil) --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename=eval-on-export.org * Statistics *** Last month's graph #+name: org-diet-graph-month #+headers: :var data=org-diet-info() #+begin_src gnuplot :file /tmp/weight_month.png reset set xdata time set ylabel "weight (in pounds)" set timefmt "%Y-%m-%d" set term pngcairo font "Sans,10" dashed plot data using 1:2 with lines lt 3 title "weight",\ data using 1:3 with lines lw 3 lt 1 title "average weight" #+end_src #+results: org-diet-graph-month [[file:/tmp/weight_month.png]] ** Support funcs #+name: org-diet-info #+begin_src emacs-lisp (message "lol") '(("2013-05-17" "216.4" "217.23" "80%") ("2013-05-19" "217.4" "217.03" "80%") ("2013-05-20" "218.0" "217.13" "90%") ("2013-05-21" "218.0" "217.36" "90%") ("2013-05-22" "217.0" "217.24" "90%") ("2013-05-23" "217.0" "217.13" "90%") ("2013-05-24" "217.0" "217.33" "90%") ("2013-05-25" "215.0" "217.09" "90%") ("2013-05-26" "213.8" "216.62" "90%") ("2013-05-27" "216.4" "216.62" "90%") ("2013-05-28" "216.4" "216.60" "100%") ("2013-05-29" "215.8" "216.44" "100%") ("2013-05-30" "215.8" "216.22" "100%") ("2013-06-03" "215.6" "215.54" "70%")) #+end_src #+RESULTS: org-diet-info | 2013-05-17 | 216.4 | 217.23 | 80% | | 2013-05-19 | 217.4 | 217.03 | 80% | | 2013-05-20 | 218.0 | 217.13 | 90% | | 2013-05-21 | 218.0 | 217.36 | 90% | | 2013-05-22 | 217.0 | 217.24 | 90% | | 2013-05-23 | 217.0 | 217.13 | 90% | | 2013-05-24 | 217.0 | 217.33 | 90% | | 2013-05-25 | 215.0 | 217.09 | 90% | | 2013-05-26 | 213.8 | 216.62 | 90% | | 2013-05-27 | 216.4 | 216.62 | 90% | | 2013-05-28 | 216.4 | 216.60 | 100% | | 2013-05-29 | 215.8 | 216.44 | 100% | | 2013-05-30 | 215.8 | 216.22 | 100% | | 2013-06-03 | 215.6 | 215.54 | 70% | --=-=-= Content-Type: text/plain Eric Schulte writes: > Christopher Allan Webber writes: > >> Hiya, >> >> I was running into troubles where regardless of my setting on >> org-export-babel-evaluate, it was evaluating babel code anyway. Here's >> a patch that seems to fix this. >> >> For convenience: I've signed the emacs/orgmode papers already. >> > > Can you send an minimal example in which evaluation takes place on > export? > > Thanks, --=-=-=--