From 8223b1d23361b74ede10bac47974ce7803804380 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Sun, 30 Sep 2012 17:14:59 +0200 Subject: Sync Org 7.9.2 from the commit tagged "release_7.9.2" in Org's Git repo. --- lisp/org/ob-dot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/org/ob-dot.el') diff --git a/lisp/org/ob-dot.el b/lisp/org/ob-dot.el index 1d4b7da7e18..99748b0a95b 100644 --- a/lisp/org/ob-dot.el +++ b/lisp/org/ob-dot.el @@ -64,7 +64,8 @@ "Execute a block of Dot code with org-babel. This function is called by `org-babel-execute-src-block'." (let* ((result-params (cdr (assoc :result-params params))) - (out-file (cdr (assoc :file params))) + (out-file (cdr (or (assoc :file params) + (error "You need to specify a :file parameter")))) (cmdline (or (cdr (assoc :cmdline params)) (format "-T%s" (file-name-extension out-file)))) (cmd (or (cdr (assoc :cmd params)) "dot")) -- cgit v1.2.3