Commit 1c708c1a authored by Chong Yidong's avatar Chong Yidong
Browse files

Doc fix for just-one-space change. Document it in NEWS.

parent 48ba8195
......@@ -232,6 +232,9 @@ replaced with Lisp commands `doc-file-to-man' and `doc-file-to-info'.
** The default value of `backup-by-copying-when-mismatch' is now t.
** The command `just-one-space' (C-SPC), if given a negative argument,
also deletes newlines around point.
** Deletion changes
*** New option `delete-active-region'.
......@@ -762,7 +762,7 @@ If BACKWARD-ONLY is non-nil, only delete them before point."
(defun just-one-space (&optional n)
"Delete all spaces and tabs around point, leaving one space (or N spaces).
If N is negative, deletes carriage return and linefeed characters as well."
If N is negative, delete newlines as well."
(interactive "*p")
(unless n (setq n 1))
(let ((orig-pos (point))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment