Fix bug with #+BIND during LaTeX export
commite1a18bdf272693ddf8319329989409684fddcb05
authorCarsten Dominik <carsten.dominik@gmail.com>
Mon, 4 Jan 2010 16:48:47 +0000 (4 17:48 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Mon, 4 Jan 2010 16:49:39 +0000 (4 17:49 +0100)
treeb407562d3ae34c7de504daac1cf77ad675553740
parenta9eb916a2c24ce4e09ecd7a3e69d9e4a8dec010e
Fix bug with #+BIND during LaTeX export

Christopher Suckling writes:

> Thank you, but not quite working yet:
>
> ,----
> | #+BIND: org-export-latex-title-command ""
> `----
>
> now appears to be having the *effect* of setting a global variable.
>
> I load Emacs then visit the below test org file. I then export the file.
>
> I get a \maketitle line.
>
> I then C-c C-c on the #+BIND: line and re-export.
>
> \maketitle is removed.
>
> I then export another org file without the #+BIND: line.
>
> There is no \maketitle, even though there should be.
>
> I add
>
> ,----
> | #+BIND: org-export-latex-title-command "\foobar"
> `----
>
> to the new org file, C-c C-c and export:
>
> \foobar is added to the exported file.
>
> Finally, I re-export the original test org file (without C-c C-c on the
> #+BIND: line):
>
> \foobar is added to the exported file.
>
> However,
>
> ,----
> | C-h v org-export-latex-title-command
> `----
>
> always returns the value "\\maketitle", no matter what the value of the
> #+BIND: line.
>
> Best, Christopher
lisp/ChangeLog
lisp/org-exp.el
lisp/org-latex.el