diff options
author | Bastien Guerry <bzg@altern.org> | 2014-04-19 16:40:11 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2014-04-19 16:40:11 +0200 |
commit | aff6a10aac5ebb0bec50187fd4039424c23ead82 (patch) | |
tree | 474d2a0d42fa4774d4042a3ed6ce1659be28a4a2 | |
parent | 0afb0882075ce66a1bc5225b455bade854d05281 (diff) | |
download | org-mode-aff6a10aac5ebb0bec50187fd4039424c23ead82.tar.gz |
org-bibtex.el (org-bibtex-headline): Don't throw an error
* org-bibtex.el (org-bibtex-headline): Don't throw an error
when trying to add a keyword field to a BibTeX entry that is
not known by BibTeX or defined by the user.
Thanks to Leonard Randall for reporting this and suggesting a fix.
-rw-r--r-- | lisp/org-bibtex.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-bibtex.el b/lisp/org-bibtex.el index 71a04ef..78520f2 100644 --- a/lisp/org-bibtex.el +++ b/lisp/org-bibtex.el @@ -371,7 +371,7 @@ 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 ", ")) - (bibtex-make-field "keywords" t t)) + (ignore-errors (bibtex-make-field "keywords" t t))) (insert (mapconcat #'identity tags ", "))) (buffer-string)))))) |