From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Customizing Org 8.0 Export Date: Tue, 21 May 2013 00:25:10 -0500 Message-ID: References: <519AD5EE.6030108@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0158b6bc49b2cf04dd33acc1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uef4T-00028r-Gz for emacs-orgmode@gnu.org; Tue, 21 May 2013 01:25:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uef4S-0008OV-72 for emacs-orgmode@gnu.org; Tue, 21 May 2013 01:25:13 -0400 Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:58356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uef4R-0008ON-Rf for emacs-orgmode@gnu.org; Tue, 21 May 2013 01:25:12 -0400 Received: by mail-la0-f43.google.com with SMTP id ez20so220021lab.30 for ; Mon, 20 May 2013 22:25:10 -0700 (PDT) In-Reply-To: <519AD5EE.6030108@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: Scott Randby Cc: emacs-orgmode --089e0158b6bc49b2cf04dd33acc1 Content-Type: text/plain; charset=UTF-8 On May 20, 2013 9:03 PM, "Scott Randby" wrote: > > First, I am using Org version 8.0.3-140-g84bae8. > > I'm having some weird customization issues that I don't know how to > resolve. > > When Emacs is started, not all the org variables are visible or > available for customization. Here is an example involving HTML export > customization. > > 1. Start Emacs > 2. M-x customize-group org-export-html > - None of the org-html variables appear on the list. > 3. M-x customize-variable org-html-head > - Changes to org-export-html-head > 4. Open up an org file to export to HTML > 5. C-c C-e h h > 6. M-x customize-group org-export-html > - Now the org-html variables appear > 7. M-x customize-variable org-html-head > - Works > > I can live with the above behavior, but I have a problem when it comes > to customizing LaTeX export. > > 1. In a manner similar to the org-html variable situation described > above, variables such as org-latex-classes are not available for > customization when Emacs is started. One must do C-c C-e l p on an > org file to make these variables available. > > 2. I want to put the following in my init.el: > > (add-to-list 'org-latex-classes > '("notesclass" > "\\documentclass{article}" > ("\\section{%s}" . "\\newsection{%s}") > ("\\subsection{%s}" . "\\newsubsection{%s}"))) > > But when I do, I get the following on startup: > > Warning (initialization): An error occurred while loading > `/home/srandby/.emacs.d/init.el': > > Symbol's value as variable is void: org-latex-classes > > To ensure normal operation, you should investigate and remove > the cause of the error in your initialization file. Start > Emacs with the `--debug-init' option to view a complete error > backtrace. > > This means I cannot put the above code in my init.el file where I > want it to be. > > Is there any way to make all of org's variables available for > customization on startup? > Yes, see the original exporter announcement: http://article.gmane.org/gmane.emacs.orgmode/65574 Section 3.0 calls out two methods of setting available backends. I'm guessing you are customizing org-export-backends vs (require 'ox-backend). Try requiring the backend and all associated variables will be there on startup. John > Scott Randby > > --089e0158b6bc49b2cf04dd33acc1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On May 20, 2013 9:03 PM, "Scott Randby" <srandby@gmail.com> wrote:
>
> First, I am using Org version 8.0.3-140-g84bae8.
>
> I'm having some weird customization issues that I don't know h= ow to
> resolve.
>
> When Emacs is started, not all the org variables are visible or
> available for customization. Here is an example involving HTML export<= br> > customization.
>
> 1. Start Emacs
> 2. M-x customize-group org-export-html
> =C2=A0 =C2=A0- None of the org-html variables appear on the list.
> 3. M-x customize-variable org-html-head
> =C2=A0 =C2=A0- Changes to org-export-html-head
> 4. Open up an org file to export to HTML
> 5. C-c C-e h h
> 6. M-x customize-group org-export-html
> =C2=A0 =C2=A0- Now the org-html variables appear
> 7. M-x customize-variable org-html-head
> =C2=A0 =C2=A0- Works
>
> I can live with the above behavior, but I have a problem when it comes=
> to customizing LaTeX export.
>
> 1. In a manner similar to the org-html variable situation described > =C2=A0 =C2=A0above, variables such as org-latex-classes are not availa= ble for
> =C2=A0 =C2=A0customization when Emacs is started. One must do C-c C-e = l p on an
> =C2=A0 =C2=A0org file to make these variables available.
>
> 2. I want to put the following in my init.el:
>
> =C2=A0 =C2=A0 =C2=A0(add-to-list 'org-latex-classes
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'("notesclass= "
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"\\documen= tclass{article}"
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\sectio= n{%s}" . "\\newsection{%s}")
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0("\\subsec= tion{%s}" . "\\newsubsection{%s}")))
>
> =C2=A0 =C2=A0 But when I do, I get the following on startup:
>
> =C2=A0 =C2=A0 =C2=A0 Warning (initialization): An error occurred while= loading
> =C2=A0 =C2=A0 =C2=A0 `/home/srandby/.emacs.d/init.el':
>
> =C2=A0 =C2=A0 =C2=A0 Symbol's value as variable is void: org-latex= -classes
>
> =C2=A0 =C2=A0 =C2=A0 To ensure normal operation, you should investigat= e and remove
> =C2=A0 =C2=A0 =C2=A0 the cause of the error in your initialization fil= e. =C2=A0Start
> =C2=A0 =C2=A0 =C2=A0 Emacs with the `--debug-init' option to view = a complete error
> =C2=A0 =C2=A0 =C2=A0 backtrace.
>
> =C2=A0 =C2=A0 This means I cannot put the above code in my init.el fil= e where I
> =C2=A0 =C2=A0 want it to be.
>
> Is there any way to make all of org's variables available for
> customization on startup?
>

Yes, see the original exporter announcement:

http://article.gmane.org/gmane.emacs.orgmode/65574

Section 3.0 calls out two methods of setting available backe= nds. I'm guessing you are customizing org-export-backends vs (require &= #39;ox-backend). Try requiring the backend and all associated variables wil= l be there on startup.

John

> Scott Randby
>
>

--089e0158b6bc49b2cf04dd33acc1--