From 37809489057bb98ead8caa682ffd12a1d7e6bda0 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Tue, 8 Aug 2023 12:38:14 +0300 Subject: [PATCH] lisp/ob-ditaa.el: Fix checkdoc warnings * lisp/ob-ditaa.el (org-babel-execute:ditaa): Mention all the arguments in the docstring. Start error message from capital letter. --- lisp/ob-ditaa.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el index 622000828..fa864c7bc 100644 --- a/lisp/ob-ditaa.el +++ b/lisp/ob-ditaa.el @@ -83,11 +83,11 @@ Do not leave leading or trailing spaces in this string." :type 'string) (defun org-babel-execute:ditaa (body params) - "Execute a block of Ditaa code with org-babel. + "Execute BODY of Ditaa code with org-babel according to PARAMS. This function is called by `org-babel-execute-src-block'." (let* ((out-file (or (cdr (assq :file params)) (error - "ditaa code block requires :file header argument"))) + "Ditaa code block requires :file header argument"))) (cmdline (cdr (assq :cmdline params))) (java (cdr (assq :java params))) (in-file (org-babel-temp-file "ditaa-"))