From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Painfully Slow Export Date: Tue, 12 Jun 2018 21:41:22 +0200 Message-ID: References: <73844D54-30A4-48CB-8303-6DA3C932A444@ucsd.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000085c3e7056e77083a" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSp9E-0005aY-He for emacs-orgmode@gnu.org; Tue, 12 Jun 2018 15:40:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSp9D-0000hM-GW for emacs-orgmode@gnu.org; Tue, 12 Jun 2018 15:40:08 -0400 Received: from mail-qk0-x22d.google.com ([2607:f8b0:400d:c09::22d]:37004) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSp9D-0000gJ-9Y for emacs-orgmode@gnu.org; Tue, 12 Jun 2018 15:40:07 -0400 Received: by mail-qk0-x22d.google.com with SMTP id j12-v6so105123qkk.4 for ; Tue, 12 Jun 2018 12:40:07 -0700 (PDT) In-Reply-To: <73844D54-30A4-48CB-8303-6DA3C932A444@ucsd.edu> 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" To: Charles Berry Cc: Org-mode --00000000000085c3e7056e77083a Content-Type: text/plain; charset="UTF-8" Hi Chuck, It looks fine to me. I see: Name: fig:foo Lang: python Properties: :header-args :eval never-export :header-args:python nil Header Arguments: :cache no :eval never-export :exports results :hlines no :noweb yes :results file replace :session discharge_ts :tangle no -k. On Tue, Jun 12, 2018 at 5:51 PM Berry, Charles wrote: > > > > On Jun 12, 2018, at 7:01 AM, Ken Mankoff wrote: > > > > I'm trying to export a file to LaTeX. It takes about one minute. The > > file is 12000 lines long and has 200 code blocks. I have set: > > > > #+PROPERTY: header-args :eval never-export > > > > That is the right idiom. Of course, you have to refresh the local setup > after typing that (C-c C-c with point in the PROPERTY line) or it will have > no effect until you save and re-open the file. > > It is good to check that you have refreshed and that there are no typos or > hidden chars in the line, so go to a src block and type > > C-c C-v C-i > > and verify that you see something like this > > ,---- > | Lang: R > | Properties: > | :header-args :eval never-export > | :header-args:R nil > | Header Arguments: > | :cache no > | :eval never-export > | :exports code > | :hlines no > | :noweb no > | :results replace > | :session none > | :tangle no > `---- > > You should see both the :header-args line as you typed it and the :eval > line showing never-export. > > > which means, I think, no babel blocks should evaluate. > > > > (setq org-export-use-babel t) seems to be the culprit. > > Leave it set to `t'. > > Chuck > > > > --00000000000085c3e7056e77083a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Chuck,

It looks fine to me. I see:

Name: fig:foo
Lang: python
Properties:
:header-args= :eval never-export
:header-args:python nil
Header Arguments:
:cache no
:eval never-export
:exports results
<= div> :hlines no
:nowe= b yes
:results file r= eplace
:session discharge_ts
:tangle no
<= /div>

=C2=A0=C2=A0
=C2=A0 -k.


On Tue, Jun 12, 2018 at= 5:51 PM Berry, Charles <ccberry@ucs= d.edu> wrote:


> On Jun 12, 2018, at 7:01 AM, Ken Mankoff <mankoff@gmail.com> wrote:
>
> I'm trying to export a file to LaTeX. It takes about one minute. T= he
> file is 12000 lines long and has 200 code blocks. I have set:
>
> #+PROPERTY: header-args :eval never-export
>

That is the right idiom.=C2=A0 Of course, you have to refresh the local set= up after typing that (C-c C-c with point in the PROPERTY line) or it will h= ave no effect until you save and re-open the file.

It is good to check that you have refreshed and that there are no typos or = hidden chars in the line, so go to a src block and type

C-c C-v C-i

and verify that you see something like this

,----
| Lang: R
| Properties:
|=C2=A0 =C2=A0 =C2=A0 =C2=A0:header-args=C2=A0 =C2=A0 :eval never-export |=C2=A0 =C2=A0 =C2=A0 =C2=A0:header-args:R=C2=A0 nil
| Header Arguments:
|=C2=A0 =C2=A0 =C2=A0 =C2=A0:cache=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 no
|=C2=A0 =C2=A0 =C2=A0 =C2=A0:eval=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0n= ever-export
|=C2=A0 =C2=A0 =C2=A0 =C2=A0:exports=C2=A0 =C2=A0 =C2=A0 =C2=A0 code
|=C2=A0 =C2=A0 =C2=A0 =C2=A0:hlines=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0no
|=C2=A0 =C2=A0 =C2=A0 =C2=A0:noweb=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 no
|=C2=A0 =C2=A0 =C2=A0 =C2=A0:results=C2=A0 =C2=A0 =C2=A0 =C2=A0 replace
|=C2=A0 =C2=A0 =C2=A0 =C2=A0:session=C2=A0 =C2=A0 =C2=A0 =C2=A0 none
|=C2=A0 =C2=A0 =C2=A0 =C2=A0:tangle=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0no
`----

You should see both the :header-args line as you typed it and the :eval lin= e showing never-export.

> which means, I think, no babel blocks should evaluate.
>
> (setq org-export-use-babel t) seems to be the culprit.

Leave it set to `t'.

Chuck



--00000000000085c3e7056e77083a--