From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Julian M. Burgos" Subject: Re: org-ref "no key found" Date: Mon, 08 Sep 2014 10:17:00 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQvzH-0003GF-A6 for emacs-orgmode@gnu.org; Mon, 08 Sep 2014 06:16:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQvzB-00053Z-Tr for emacs-orgmode@gnu.org; Mon, 08 Sep 2014 06:15:55 -0400 Received: from hafgarpur.hafro.is ([130.208.64.48]:38470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQvzB-00052Y-HX for emacs-orgmode@gnu.org; Mon, 08 Sep 2014 06:15:49 -0400 In-reply-to: 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: "Julian M. Burgos" Cc: emacs-orgmode@gnu.org, John Kitchin --=-=-= Content-Type: text/plain Hi John, I think I can replicate the org-ref bug now (if it is a bug). This is the situation: a) If I open emacs, load a file that already has some link, and click on the link (or place the cursor on it and press enter) I get the "no key found" message and I cannot open the notes file (I get a "Wrong type argument: stringp, nil"), although the link to the pdf file works. If I open more than one file, links do not work in any of them. At this point if I check the value of the "org-ref-default-bibliography" variable, I get the correct path and filename of my .bib file. b) If I insert a new citation (using Ctrl-]) in any of the documents, links work as they should in all documents (this is, I get the title and I can open the notes file). I should say that I am not using the org-ref-insert-bibliography-link function, because I use biblatex and I prefer to insert the Latex \printbibliography command. But if use it and insert the bibliography link, the behaviour does not change. This is what I have in my .emacs file that is related to RefTex and org-ref: -------------------------------------------------------------------------------------- ;; Load RefTex (add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode (autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t) (autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil) (autoload 'reftex-citation "reftex-cite" "Make citation" nil) (autoload 'reftex-index-phrase-mode "reftex-index" "Phrase mode" t) (add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode (add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode ;; Make RefTeX faster (setq reftex-enable-partial-scans t) (setq reftex-save-parse-info t) (setq reftex-use-multiple-selection-buffers t) (setq reftex-plug-into-AUCTeX t) (setq reftex-default-bibliography '("/home/julian/Documents/Refs/BibTex/references.bib")) (setq reftex-sort-bibtex-matches "author") ; Sort entries found in BibTex database (setq bibtex-dialect "biblatex") -------------------------------------------------------------------------------------- (require 'org-ref) (setq org-ref-bibliography-notes "/home/julian/Documents/org files/notes.org" org-ref-default-bibliography '("/home/julian/Documents/Refs/BibTex/references.bib") org-ref-pdf-directory "/home/julian/Documents/Refs/") (setq org-ref-default-citation-link "parencite") -------------------------------------------------------------------------------------- I am sending you very simple .org and .bib files that (in my computer) reproduce this behaviour. In this file I did use org-ref-insert-bibliography-link. Let me know if I can give you any other information. All the best, Julian --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=trial.bib Content-Transfer-Encoding: base64 QEFydGljbGV7QnJvd24yMDExYSwKICBUaXRsZSAgICAgICAgICAgICAgICAgICAgPSB7UXVhbnRp dGF0aXZlIGFwcHJvYWNoZXMgaW4gY2xpbWF0ZSBjaGFuZ2UgZWNvbG9neX0sCiAgQXV0aG9yICAg ICAgICAgICAgICAgICAgID0ge0Jyb3duLCBDLkouIGFuZCBTY2hvZW1hbiwgRC5TLiBhbmQgU3lk ZW1hbiwgVy5KLiBhbmQgQnJhbmRlciwgSy4gYW5kIEJ1Y2tsZXksIEwuQi4gYW5kIEJ1cnJvd3Ms IE0uIGFuZCBEdWFydGUsIEMuTS4gYW5kIE1vb3JlLCBQLkouIGFuZCBQYW5kb2xmaSwgSi5NLiBh bmQgUG9sb2N6YW5za2EsIEUuIGFuZCBvdGhlcnN9LAogIEpvdXJuYWx0aXRsZSAgICAgICAgICAg ICA9IHtHbG9iYWwgQ2hhbmdlIEJpb2xvZ3l9LAogIFllYXIgICAgICAgICAgICAgICAgICAgICA9 IHsyMDExfSwKCiAgQ3Jvc3NyZWYgICAgICAgICAgICAgICAgID0ge2J1cm5obX0sCiAgRmlsZSAg ICAgICAgICAgICAgICAgICAgID0gezpCcm93bjIwMTFhLnBkZjpQREZ9LAogIFB1Ymxpc2hlciAg ICAgICAgICAgICAgICA9IHtXaWxleSBPbmxpbmUgTGlicmFyeX0KfQoKQEFydGljbGV7SG9iYnMy MDA2LAogIFRpdGxlICAgICAgICAgICAgICAgICAgICA9IHtBbHRlcm5hdGl2ZXMgdG8gc3RhdGlz dGljYWwgaHlwb3RoZXNpcyB0ZXN0aW5nIGluIGVjb2xvZ3k6IGEgZ3VpZGUgdG8gc2VsZiB0ZWFj aGluZ30sCiAgQXV0aG9yICAgICAgICAgICAgICAgICAgID0ge0hvYmJzLCBOLlQuIGFuZCBIaWxi b3JuLCBSLn0sCiAgSm91cm5hbHRpdGxlICAgICAgICAgICAgID0ge0Vjb2xvZ2ljYWwgQXBwbGlj YXRpb25zfSwKICBZZWFyICAgICAgICAgICAgICAgICAgICAgPSB7MjAwNn0sCiAgTnVtYmVyICAg ICAgICAgICAgICAgICAgID0gezF9LAogIFBhZ2VzICAgICAgICAgICAgICAgICAgICA9IHs1LS0x OX0sCiAgVm9sdW1lICAgICAgICAgICAgICAgICAgID0gezE2fSwKCiAgQ3Jvc3NyZWYgICAgICAg ICAgICAgICAgID0ge1F1aWNrMjAxMH0sCiAgRmlsZSAgICAgICAgICAgICAgICAgICAgID0gezpI b2JiczIwMDYucGRmOlBERn0sCiAgUHVibGlzaGVyICAgICAgICAgICAgICAgID0ge0VjbyBTb2Mg QW1lcmljYX0KfQo= --=-=-= Content-Type: application/vnd.lotus-organizer Content-Disposition: attachment; filename=trial.org Content-Transfer-Encoding: base64 KiBUcmlhbApTb21lIHJlZmVyZW5jZXMKcGFyZW5jaXRlOkJyb3duMjAxMWEsSG9iYnMyMDA2Cgpi aWJsaW9ncmFwaHk6fi9Eb2N1bWVudHMvdHJpYWwuYmliCg== --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by hafgarpur.hafro.is id s88AFbmK029969 Julian M. Burgos writes: > John, for some weird reason everything seems to be working now. Thanks > for your help... I will let you know if I break it again. > > John Kitchin writes: > >> that is odd. this means org-ref is not finding the key you clicked >> on. could you send me a small example that reproduces your problem (an >> org-file and the bib file)? >> >> "Julian M. Burgos" writes: >> >>> Hi John,=20 >>> >>> No, they still do not work even after I click on the bibliography lin= k >>> and get my .bib file opened. >>> >>> Julian >>> >>> John Kitchin writes: >>> >>>> "Julian M. Burgos" writes: >>>> >>>> If you click on the bibliography link to open the file, and then go = back >>>> to your org-file, do the cite links work? >>>> >>>> I suspect the notes problem is related to the no key found problem. >>>> >>>>> Hello everyone, >>>>> >>>>> I am playing around with Joh Kitchin's excellent org-ref, and I am >>>>> having a few issues. In my .emacs file I have set up the values fo= r the >>>>> org-ref-bibliography-notes, org-ref-default-bibliography, and >>>>> org-ref-pdf-directory. >>>>> >>>>> With this I can access my .bib database and use org-ref-insert-cite= link >>>>> to add a citation link with no problems. But when I press enter on= the >>>>> cite link, I get the following message: >>>>> >>>>> no key found >>>>> (No key found) (p)df (u)rl (n)otes (q) quit >>>>> >>>>> If I press "p" I get the pdf file, but if I press "n" I get the >>>>> following message:=20 >>>>> >>>>> "Wrong type argument: stringp, nil". >>>>> >>>>> Any ideas how to solve this? >>>>> >>>>> Many thanks, >>>>> >>>>> Julian --=20 Julian Mariano Burgos, PhD Hafranns=C3=B3knastofnun/Marine Research Institute Sk=C3=BAlagata 4, 121 Reykjav=C3=ADk, Iceland S=C3=ADmi/Telephone : +354-5752037 Br=C3=A9fs=C3=ADmi/Telefax: +354-5752001 Netfang/Email: julian@hafro.is --=-=-=--