From: Eli Zaretskii Date: Sat, 18 Feb 2023 18:03:33 +0000 (+0200) Subject: Fix documentation of 'just-one-space' and 'delete-horizontal-space' X-Git-Tag: emacs-29.0.90~402 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=774051873d569590c78ef450ca4630c53452ae64;p=emacs.git 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) --- 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")