From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-ref code Date: Thu, 15 May 2014 14:30:28 +0100 Message-ID: <87bnuznp8r.fsf@ucl.ac.uk> References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87zjil4ex1.fsf@ucl.ac.uk> <87k39ojkc2.fsf@ucl.ac.uk> <8738gbr0i5.fsf@ucl.ac.uk> <87tx8rpib1.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkvk9-0003uh-QF for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:30:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wkvk1-0001t2-Mu for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:30:41 -0400 Received: from mail-db3lp0082.outbound.protection.outlook.com ([213.199.154.82]:19910 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wkvk1-0001ru-EI for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:30:33 -0400 In-Reply-To: (John Kitchin's message of "Thu, 15 May 2014 09:05:18 -0400") 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: John Kitchin Cc: "emacs-orgmode@gnu.org" 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