From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: isbn-to-bibtex (from org-ref) fails Date: Mon, 09 May 2016 13:10:27 -0400 Message-ID: References: <877fgds6yd.fsf@free.fr> <87vb3ut5hq.fsf@free.fr> <878u00n6hw.fsf@free.fr> <87y47r5yny.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azohW-00061O-Rs for emacs-orgmode@gnu.org; Mon, 09 May 2016 13:10:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azohR-0003qb-Nj for emacs-orgmode@gnu.org; Mon, 09 May 2016 13:10:33 -0400 Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:33409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azohR-0003qX-J8 for emacs-orgmode@gnu.org; Mon, 09 May 2016 13:10:29 -0400 Received: by mail-qk0-x22a.google.com with SMTP id n63so98240823qkf.0 for ; Mon, 09 May 2016 10:10:29 -0700 (PDT) In-reply-to: <87y47r5yny.fsf@free.fr> 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" To: Julien Cubizolles Cc: emacs-orgmode@gnu.org In this particular case 0062190377 does not seem to be a known ISBN. i.e. this http://xisbn.worldcat.org/webservices/xid/isbn/0062190377?method=getMetadata&format=json&fl=* leads to this: { "stat":"unknownId"} I modified this function a bit to avoid this issue. It does not help with this isbn, but gives a better error. I assume you were looking for Seveneves: A Novel? Maybe it is too new for xisbn. BTW: Did you read it? Is it good? Julien Cubizolles writes: > Julien Cubizolles writes: > >> John Kitchin writes: >> >>> I found a (save-buffer) in the bibtex entry clean functions and took >>> that out. I think it solves this problem. >> >> It's working fine now, thanks. > > Actually it seems to be broken again: > > --8<---------------cut here---------------start------------->8--- > Debugger entered--Lisp error: (wrong-type-argument arrayp nil) > isbn-to-bibtex("0062190377" "~/enseignement/papiers/bibliography.bib") > funcall-interactively(isbn-to-bibtex "0062190377" "~/enseignement/papiers/bibliography.bib") > call-interactively(isbn-to-bibtex record nil) > command-execute(isbn-to-bibtex record) > helm-M-x(nil "isbn-to-bibtex") > funcall-interactively(helm-M-x nil "isbn-to-bibtex") > call-interactively(helm-M-x nil nil) > command-execute(helm-M-x) > --8<---------------cut here---------------end--------------->8--- > > Also, the first time I call it, it doesn't even prompt for the ISBN > number. When call it with point on an ISBN number, I get the ISBN > prompt, with this value already filled for all subsequent calls, but > with the same wrong-type-argument error. > > Regards, > > Julien. -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu