org-babel-remove-result-one-or-many: Document the prefix argument

* lisp/ob-core.el (org-babel-remove-result-one-or-many): Rename prefix
argument to the conventional ARG and document it in the docstring.
This commit is contained in:
Ihor Radchenko 2023-08-30 08:24:11 +03:00
parent cd0e225e34
commit d8af9c40e0
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 4 additions and 4 deletions

View File

@ -2739,12 +2739,12 @@ Leading white space is trimmed."
(skip-chars-backward " \t\n")
(point)))))))))
(defun org-babel-remove-result-one-or-many (x)
(defun org-babel-remove-result-one-or-many (arg)
"Remove the result of the current source block.
If called with a prefix argument, remove all result blocks
in the buffer."
If called with prefix argument ARG, remove all result blocks in the
buffer."
(interactive "P")
(if x
(if arg
(org-babel-map-src-blocks nil (org-babel-remove-result))
(org-babel-remove-result)))