summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-01-13 00:16:07 -0500
committerKyle Meyer <kyle@kyleam.com>2016-01-13 00:16:07 -0500
commitabb9a0f88aeb67b340d5acaaa86c063353e5d3d0 (patch)
tree62ac7198e94edb8e26eefce7609b42038985db7f
parent32ccc854cf1c1fabd7c67959f920527627763dad (diff)
downloadorg-mode-abb9a0f88aeb67b340d5acaaa86c063353e5d3d0.tar.gz
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.
-rw-r--r--lisp/org-bibtex.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-bibtex.el b/lisp/org-bibtex.el
index dbfcc15..2cd84b6 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