[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-bibtex-read error calling bibtex-parse-entry
From: |
Bastien |
Subject: |
Re: [O] org-bibtex-read error calling bibtex-parse-entry |
Date: |
Tue, 29 Apr 2014 14:32:59 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (gnu/linux) |
Hi Mathäus,
Mathäus Meyer <address@hidden> 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