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)
This commit is contained in:
parent
7337f07250
commit
774051873d
1 changed files with 3 additions and 1 deletions
|
@ -1088,7 +1088,8 @@ Leave one space or none, according to the context."
|
||||||
|
|
||||||
(defun delete-horizontal-space (&optional backward-only)
|
(defun delete-horizontal-space (&optional backward-only)
|
||||||
"Delete all spaces and tabs around point.
|
"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")
|
(interactive "*P")
|
||||||
(delete-space--internal " \t" backward-only))
|
(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)
|
(defun just-one-space (&optional n)
|
||||||
"Delete all spaces and tabs around point, leaving one space (or N spaces).
|
"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.
|
If N is negative, delete newlines as well, leaving -N spaces.
|
||||||
See also `cycle-spacing'."
|
See also `cycle-spacing'."
|
||||||
(interactive "*p")
|
(interactive "*p")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue