From 774051873d569590c78ef450ca4630c53452ae64 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 18 Feb 2023 20:03:33 +0200 Subject: [PATCH] Fix documentation of 'just-one-space' and 'delete-horizontal-space' * lisp/simple.el (just-one-space, delete-horizontal-space): Mention the effect of prefix argument. (Bug#61609) --- lisp/simple.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/simple.el b/lisp/simple.el index c58acfe3adc..c2d10b4dcb4 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1088,7 +1088,8 @@ Leave one space or none, according to the context." (defun delete-horizontal-space (&optional backward-only) "Delete all spaces and tabs around point. -If BACKWARD-ONLY is non-nil, delete them only before point." +If BACKWARD-ONLY is non-nil (interactively, the prefix argument), delete +them only before point." (interactive "*P") (delete-space--internal " \t" backward-only)) @@ -1114,6 +1115,7 @@ If BACKWARD-ONLY is non-nil, delete them only before point." (defun just-one-space (&optional n) "Delete all spaces and tabs around point, leaving one space (or N spaces). +Interactively, N is the prefix numeric argument. If N is negative, delete newlines as well, leaving -N spaces. See also `cycle-spacing'." (interactive "*p") -- 2.39.5