yes, I am using emacs 24.3.

John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Thu, May 15, 2014 at 9:30 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
On Thursday, 15 May 2014 at 09:05, John Kitchin wrote:
> Your error seems to be coming from reftex.

Well, it seems that if you are going to use reftex in emacs 24.4.x, you
need to define some variables.  I put the following in your
org-mode-reftex-setup function:

    (setq-local tex-start-of-header "%\\*\\*start of header")
    (setq-local tex-end-of-header "%\\*\\*end of header")

immediately after loading reftex and things work better (I haven't
checked whether everything works yet).

The problem is that tex-mode assumes that it is active in a mode that
has been derived from tex-mode (such as latex-mode or plain-tex-mode)
and those modes define the variables above.  Org-mode doesn't!

This may be a change in tex-mode for the latest emacs versions?  I
cannot verify this.

Am I correct in believing that you are using emacs 24.3?

--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-958-g7c8559-git