From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Error with org-mode-reftex-setup after upgrade Date: Mon, 19 May 2014 16:36:14 +0200 Message-ID: <87k39hx2ch.fsf@bzg.ath.cx> References: <87lhu26som.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmOfx-0008PH-Df for emacs-orgmode@gnu.org; Mon, 19 May 2014 10:36:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmOfs-0000ou-4H for emacs-orgmode@gnu.org; Mon, 19 May 2014 10:36:25 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:56425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmOfr-0000op-U1 for emacs-orgmode@gnu.org; Mon, 19 May 2014 10:36:20 -0400 Received: by mail-we0-f176.google.com with SMTP id q59so5656874wes.35 for ; Mon, 19 May 2014 07:36:18 -0700 (PDT) In-Reply-To: <87lhu26som.fsf@hornfels.zedat.fu-berlin.de> (Loris Bennett's message of "Fri, 16 May 2014 10:20:25 +0200") 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: Loris Bennett Cc: emacs-orgmode@gnu.org Hi Loris, "Loris Bennett" writes: > ,------------------------------------------------- > | (defun org-mode-reftex-setup () > | (interactive) > | (load-library "reftex") > | (and (buffer-file-name) > | (file-exists-p (buffer-file-name)) > | (reftex-parse-all))) > | > | (add-hook 'org-mode-hook 'org-mode-reftex-setup) > `------------------------------------------------- > > Following the update, this now seems to throw the error: > > ,-------------------------------------------------------------------- > | Loading reftex...done > | File mode specification error: (wrong-type-argument sequencep dwim) > `-------------------------------------------------------------------- > > Any ideas? You need to use this defun instead: (defun org-mode-reftex-setup () (load-library "reftex") (and (buffer-file-name) (file-exists-p (buffer-file-name)) (setq TeX-master t) (reftex-parse-all)) (define-key org-mode-map (kbd "C-c )") 'reftex-citation)) setting TeX-master to t locally. HTH, -- Bastien