From 24a1f7295c367956b6a7e241c5d0f96075d570e7 Mon Sep 17 00:00:00 2001 From: Leonard Randall Date: Sun, 20 Apr 2014 08:30:01 +0200 Subject: [PATCH] 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 --- lisp/org-bibtex.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org-bibtex.el b/lisp/org-bibtex.el index 78520f2e6..dee538925 100644 --- a/lisp/org-bibtex.el +++ b/lisp/org-bibtex.el @@ -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)))))) -- 2.11.4.GIT