From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-bibtex-read error calling bibtex-parse-entry Date: Tue, 29 Apr 2014 14:32:59 +0200 Message-ID: <877g68wc1w.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf7Dm-0003IG-2n for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 08:33:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wf7Dc-0008Pj-7a for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 08:33:14 -0400 Received: from mail-we0-x231.google.com ([2a00:1450:400c:c03::231]:57417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wf7Db-0008Pf-W2 for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 08:33:04 -0400 Received: by mail-we0-f177.google.com with SMTP id t60so133979wes.22 for ; Tue, 29 Apr 2014 05:33:02 -0700 (PDT) In-Reply-To: (=?iso-8859-1?Q?=22?= =?iso-8859-1?Q?Math=E4us?= Meyer"'s message of "Thu, 24 Apr 2014 08:56:26 +0000 (UTC)") 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: =?iso-8859-1?Q?Math=E4us?= Meyer Cc: emacs-orgmode@gnu.org Hi Mathäus, Mathäus Meyer writes: > I cannot get org-bibtex to work for me. Tried in a clean emacs -Q. Emacs- > Version: 24.4.50, org-vesion: 8.2.6 > > Calling org-bibtex-read leads, independent of the bibtex entry used on (I > tried everything, including the example of the org-bibtex-documentation), to > the following error: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > looking-at(nil) > bibtex-parse-entry() > org-bibtex-read() > call-interactively(org-bibtex-read record nil) > command-execute(org-bibtex-read record) > execute-extended-command(nil "org-bibtex-read") > call-interactively(execute-extended-command nil nil) > command-execute(execute-extended-command) > > I am sorry if this is the wrong place, but I am not sure how to test if > bibtex-parse-entry is the real culprit. I would, of course, understand if I > cannot get help here for the pre-release snapshot of Emacs I am using. No worry, this is the right place to ask. The function `bibtex-parse-entry' is using a regular expression called `bibtex-entry-maybe-empty-head' to retrieve information from the point location about the entry to parse. The "looking-at(nil)" part of your error means this variable is not set when `bibtex-parse-entry' -- while looking at the docstring of `bibtex-entry-maybe-empty-head' I found `bibtex-set-dialect'... which leaves us with the problem of correctly setting the dialect for the buffer. I don't know where to go from there, but you surely can dig further, or someone else can help. Best, -- Bastien