summaryrefslogtreecommitdiff
path: root/bog.el
diff options
context:
space:
mode:
Diffstat (limited to 'bog.el')
-rw-r--r--bog.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/bog.el b/bog.el
index a354946..50fe3c7 100644
--- a/bog.el
+++ b/bog.el
@@ -762,6 +762,9 @@ one entry per BibTeX file."
(with-temp-buffer
(bibtex-mode)
(insert-file-contents file)
+ ;; Make sure `bibtex-entry-head' is set since we're not visiting
+ ;; a file.
+ (unless bibtex-entry-head (bibtex-set-dialect nil 'local))
(bibtex-skip-to-valid-entry)
(bibtex-clean-entry new-key)
(if (looking-at bibtex-entry-head)