org-bibtex.el (org-bibtex-headline): Fix insertion of keywords

* org-bibtex.el (org-bibtex-headline): Fix insertion of
keywords of unknown BibTeX entries.

TINYCHANGE
This commit is contained in:
Leonard Randall 2014-04-20 08:30:01 +02:00 committed by Bastien Guerry
parent 9272ef3e17
commit 24a1f7295c
1 changed files with 3 additions and 1 deletions

View File

@ -371,7 +371,9 @@ This variable is relevant only if `org-bibtex-tags-are-keywords' is t."
(bibtex-beginning-of-entry)
(if (re-search-forward "keywords.*=.*{\\(.*\\)}" nil t)
(progn (goto-char (match-end 1)) (insert ", "))
(ignore-errors (bibtex-make-field "keywords" t t)))
(progn (re-search-forward ",\\(\n\\)" nil t)
(insert " keywords={},\n"))
(re-search-backward "}," nil t))
(insert (mapconcat #'identity tags ", ")))
(buffer-string))))))