branch: externals/org commit d8af9c40e0ce26986d73553d5ef38f46e1702226 Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
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. --- 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 08d6e00457..ae221c5467 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -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)))