emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthieu Lemerre <matthieu.lemerre@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] org-bibtex-read requires that bibtex is properly initialized
Date: Sat, 9 Jan 2021 22:45:21 +0100	[thread overview]
Message-ID: <CAOgfdrhbehUs7UgM-F1eE1fB06NFxOnijS=hau+8MENnXy4ueA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 555 bytes --]

Hi,
 When calling org-bibtex-read on a fresh emacs on a text which is not a
.bib file, we get the following error: bibtex-parse-entry: Wrong type
argument: stringp, nil

This problem is solved if the (bibtex-set-dialect) function is called
before. Note that this function is called automatically the first time a
.bib file is opened, so many users may not have seen this problem.

I don't know what the right fix would be though. For now I call
(bibtex-set-dialect) in my init.el, but maybe org-bibtex-read should do it?

Thank you for org-mode!
Matthieu

[-- Attachment #2: Type: text/html, Size: 689 bytes --]

             reply	other threads:[~2021-01-09 22:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-09 21:45 Matthieu Lemerre [this message]
2021-01-10 13:34 ` [BUG] org-bibtex-read requires that bibtex is properly initialized Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOgfdrhbehUs7UgM-F1eE1fB06NFxOnijS=hau+8MENnXy4ueA@mail.gmail.com' \
    --to=matthieu.lemerre@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=racin@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).