emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 774051873d5: Fix documentation of 'just-one-space' and 'delete-


From: Eli Zaretskii
Subject: emacs-29 774051873d5: Fix documentation of 'just-one-space' and 'delete-horizontal-space'
Date: Sat, 18 Feb 2023 13:04:20 -0500 (EST)

branch: emacs-29
commit 774051873d569590c78ef450ca4630c53452ae64
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]