From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Thu, 15 May 2014 09:05:18 -0400 Message-ID: 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: multipart/alternative; boundary=047d7bb03f9ae200bc04f96ff265 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkvLh-0007V1-Ai for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:05:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkvLb-0000tf-Ve for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:05:25 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:38256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkvLb-0000rk-HZ for emacs-orgmode@gnu.org; Thu, 15 May 2014 09:05:19 -0400 Received: by mail-we0-f176.google.com with SMTP id q59so1044015wes.35 for ; Thu, 15 May 2014 06:05:18 -0700 (PDT) In-Reply-To: <87tx8rpib1.fsf@ucl.ac.uk> 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 , "emacs-orgmode@gnu.org" --047d7bb03f9ae200bc04f96ff265 Content-Type: text/plain; charset=UTF-8 That is pretty strange. I used this to get a minimally working install of org-ref. I deleted ~/.emacs.d, and ran emacs -q and then executed this code block. * installation You need the dash package. Use these repositories, and install dash. #+BEGIN_SRC emacs-lisp (require 'package) (setq package-archives '(("org" . "http://orgmode.org/elpa/") ("gnu" . "http://elpa.gnu.org/packages/") ("melpa" . "http://melpa.milkbox.net/packages/") )) (package-refresh-contents) (package-install 'dash) (org-babel-load-file "~/Dropbox/kitchingroup/jmax/org-ref.org") ;; this function is normally run as a hook. we run it manually here to ;; get started. (org-mode-reftex-setup) #+END_SRC #+RESULTS: : org-ref-insert-cite-link After that, it works like I expect. Your error seems to be coming from reftex. I wonder if you have something set that is making it look for a TeX-master or something, which eventually results in nil, which is failing here: re-search-forward(nil 10001 t). Or maybe you need to set something to turn that off. Perhaps some default changed? 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 4:17 AM, Eric S Fraga wrote: > John, > > I am in the process of bisecting my initialisation. Something I have > set definitely stops org (whether 8.2.5c which comes with emacs > 24.4.50.2 or 8.2.6-958) from recognising cite:... etc. as links. > > However, I have been re-building up from no initialisation bit by > bit. Right from the start, I get the error I posted yesterday: > > --8<---------------cut here---------------start------------->8--- > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > re-search-forward(nil 10001 t) > tex-main-file() > reftex-TeX-master-file() > reftex-tie-multifile-symbols() > reftex-access-scan-info((16)) > reftex-parse-all() > (and (buffer-file-name) (file-exists-p (buffer-file-name)) > (global-auto-revert-mode t) (reftex-parse-all)) > org-mode-reftex-setup() > run-hooks(change-major-mode-after-body-hook text-mode-hook > outline-mode-hook org-mode-hook) > apply(run-hooks (change-major-mode-after-body-hook text-mode-hook > outline-mode-hook org-mode-hook)) > run-mode-hooks(org-mode-hook) > org-mode() > set-auto-mode-0(org-mode nil) > set-auto-mode() > normal-mode(t) > after-find-file(nil t) > find-file-noselect-1(# "~/s/test/t.org" nil nil > "~/synced/test/t.org" (10095713 2055)) > find-file-noselect("~/s/test/t.org" nil nil t) > find-file("~/s/test/t.org" t) > call-interactively(find-file nil nil) > command-execute(find-file) > --8<---------------cut here---------------end--------------->8--- > > This happens when I try to visit any org file *once* I have loaded > org-ref the first time. It doesn't happen before org-ref is loaded. > > I am starting to despair, I must admit! I wonder if there is a conflict > between Emacs 24.4.50 and org-ref? Or do you have some other setting > for reftex that is not the default? > > Anyway, I have to get some work done so I will do without org-ref for > the time being. I'll revisit later. > > thanks again for all your time, > eric > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org > release_8.2.6-958-g7c8559-git > --047d7bb03f9ae200bc04f96ff265 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
That is pretty strange. I used this to get a min= imally working install of org-ref. I deleted ~/.emacs.d, and ran emacs -q a= nd then executed this code block.

* installation

You need the= dash package. Use these repositories, and=C2=A0 install dash.

#+BEGIN_SRC emacs-lisp
=C2=A0 (require 'package)
=C2=A0
= =C2=A0 (setq package-archives
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= '(("org"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . &= quot;http://orgmode.org/elpa/"= ;)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("gnu&quo= t;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 . "http://elpa.gnu.org/packages/")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("melpa" .= "http://melpa.milkbox.= net/packages/")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 ))
=C2=A0 (package-refresh-contents)
=C2=A0 (package-instal= l 'dash)
=C2=A0
=C2=A0 (org-babel-load-file "~/Dropbox/kitc= hingroup/jmax/org-ref.org")
=C2=A0
=C2=A0 ;; this function is normally run as a hook. we run it man= ually here to
=C2=A0 ;; get started.
=C2=A0 (org-mode-reftex-setup)#+END_SRC

#+RESULTS:
: org-ref-insert-cite-link

Af= ter that, it works like I expect.

Your error seems to be coming from reftex. I wonder if you have s= omething set that is making it look for a TeX-master or something, which ev= entually results in nil, which is failing here: re-search-forward(nil 10001= t). Or maybe you need to set something to turn that off. Perhaps some defa= ult changed?


John

-----------------------------------
John Kitch= in
Associate Professor
Doherty Hall A207F
Department of Chemical E= ngineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingr= oup.cheme.cmu.edu



On Thu, May 15, 2014 at 4:17 AM, Eric S = Fraga <e.fraga@ucl.ac.uk> wrote:
John,

I am in the process of bisecting my initialisation. =C2=A0Something I have<= br> set definitely stops org (whether 8.2.5c which comes with emacs
24.4.50.2 or 8.2.6-958) from recognising cite:... etc. as links.

However, I have been re-building up from no initialisation bit by
bit. =C2=A0Right from the start, I get the error I posted yesterday:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument stringp = nil)
=C2=A0 re-search-forward(nil 10001 t)
=C2=A0 tex-main-file()
=C2=A0 reftex-TeX-master-file()
=C2=A0 reftex-tie-multifile-symbols()
=C2=A0 reftex-access-scan-info((16))
=C2=A0 reftex-parse-all()
=C2=A0 (and (buffer-file-name) (file-exists-p (buffer-file-name)) (global-a= uto-revert-mode t) (reftex-parse-all))
=C2=A0 org-mode-reftex-setup()
=C2=A0 run-hooks(change-major-mode-after-body-hook text-mode-hook outline-m= ode-hook org-mode-hook)
=C2=A0 apply(run-hooks (change-major-mode-after-body-hook text-mode-hook ou= tline-mode-hook org-mode-hook))
=C2=A0 run-mode-hooks(org-mode-hook)
=C2=A0 org-mode()
=C2=A0 set-auto-mode-0(org-mode nil)
=C2=A0 set-auto-mode()
=C2=A0 normal-mode(t)
=C2=A0 after-find-file(nil t)
=C2=A0 find-file-noselect-1(#<buffer t.org> "~/s/test/t.org" nil nil "~/synced/test/t.org" (10095713 2055))
=C2=A0 find-file-noselect("~/s/test/t.org" nil nil t)
=C2=A0 find-file("~/s/test/= t.org" t)
=C2=A0 call-interactively(find-file nil nil)
=C2=A0 command-execute(find-file)
--8<---------------cut here---------------end--------------->8---

This happens when I try to visit any org file *once* I have loaded
org-ref the first time. =C2=A0It doesn't happen before org-ref is loade= d.

I am starting to despair, I must admit! =C2=A0I wonder if there is a confli= ct
between Emacs 24.4.50 and org-ref? =C2=A0Or do you have some other setting<= br> for reftex that is not the default?

Anyway, I have to get some work done so I will do without org-ref for
the time being. =C2=A0I'll revisit later.

thanks again for all your time,
eric

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

--047d7bb03f9ae200bc04f96ff265--