From c7812ff8a096101bcc5d99f04cdf70782237944c Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 20 Apr 2014 10:14:03 +0200 Subject: [PATCH] org-bibtex: Tiny code clean-up * lisp/org-bibtex.el (org-bibtex-headline): Tiny code clean-up. --- lisp/org-bibtex.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/org-bibtex.el b/lisp/org-bibtex.el index dee538925..b65571088 100644 --- a/lisp/org-bibtex.el +++ b/lisp/org-bibtex.el @@ -371,9 +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 ", ")) - (progn (re-search-forward ",\\(\n\\)" nil t) - (insert " keywords={},\n")) - (re-search-backward "}," nil t)) + (search-forward ",\n" nil t) + (insert " keywords={},\n") + (search-backward "}," nil t)) (insert (mapconcat #'identity tags ", "))) (buffer-string))))))