emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christopher Allan Webber <cwebber@dustycloud.org>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] Respect org-export-babel-evaluate on export
Date: Mon, 03 Jun 2013 12:04:00 -0500	[thread overview]
Message-ID: <87k3mbxh1h.fsf@earlgrey.lan> (raw)
In-Reply-To: <87ip1vgpdl.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

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)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: eval-on-export.org --]
[-- Type: text/x-org, Size: 1729 bytes --]

* 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% |

[-- Attachment #3: Type: text/plain, Size: 438 bytes --]


Eric Schulte writes:

> Christopher Allan Webber <cwebber@dustycloud.org> 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,


  reply	other threads:[~2013-06-03 17:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-02 16:21 [PATCH] Respect org-export-babel-evaluate on export Christopher Allan Webber
2013-06-03 14:45 ` Eric Schulte
2013-06-03 17:04   ` Christopher Allan Webber [this message]
2013-06-05 12:27     ` Nicolas Goaziou

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=87k3mbxh1h.fsf@earlgrey.lan \
    --to=cwebber@dustycloud.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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