From abb9a0f88aeb67b340d5acaaa86c063353e5d3d0 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 13 Jan 2016 00:16:07 -0500 Subject: [PATCH] org-bibtex: Mark filename argument as required * lisp/org-bibtex.el (org-bibtex): Mark FILENAME argument as required because, when called from Lisp, the function does not provide a default file name when FILENAME is nil, leading to a type error. --- lisp/org-bibtex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-bibtex.el b/lisp/org-bibtex.el index dbfcc158d..2cd84b696 100644 --- a/lisp/org-bibtex.el +++ b/lisp/org-bibtex.el @@ -549,7 +549,7 @@ With optional argument OPTIONAL, also prompt for optional fields." ;;; Bibtex <-> Org-mode headline translation functions -(defun org-bibtex (&optional filename) +(defun org-bibtex (filename) "Export each headline in the current file to a bibtex entry. Headlines are exported using `org-bibtex-headline'." (interactive