From 8dc71d915e3678a42f1326352fa66e63fd1c4057 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Fri, 4 Aug 2023 11:33:33 +0300 Subject: [PATCH] lisp/ob-core.el: Fix some checkdoc warnings * lisp/ob-core.el (org-babel-where-is-src-block-head): Quote `match-data'. (org-babel-insert-result): Ensure two spaces between sentences. (org-babel-temp-file): Clarify that `temporary-file-directory' refers to a function. --- lisp/ob-core.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 8472d28a5..fb9df80c3 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -1873,7 +1873,7 @@ its current beginning instead. Return the point at the beginning of the current source block. Specifically at the beginning of the #+BEGIN_SRC line. Also set -match-data relatively to `org-babel-src-block-regexp', which see. +`match-data' relatively to `org-babel-src-block-regexp', which see. If the point is not on a source block or within blank lines after an src block, then return nil." (let ((element (or src-block (org-element-at-point)))) @@ -2354,7 +2354,7 @@ silent -- no results are inserted into the Org buffer but process). none ---- no results are inserted into the Org buffer nor - echoed to the minibuffer. they are not processed into + echoed to the minibuffer. They are not processed into Emacs-lisp objects at all. file ---- the results are interpreted as a file path, and are @@ -3376,8 +3376,8 @@ Emacs shutdown.") (defun org-babel-temp-file (prefix &optional suffix) "Create a temporary file in the `org-babel-temporary-directory'. Passes PREFIX and SUFFIX directly to `make-temp-file' with the -value of `temporary-file-directory' temporarily set to the value -of `org-babel-temporary-directory'." +value of function `temporary-file-directory' temporarily set to the +value of `org-babel-temporary-directory'." (make-temp-file (concat (file-name-as-directory (org-babel-temp-directory)) prefix) nil