changeset 111974:2faf9c0a9055

Doc fix for just-one-space change. Document it in NEWS.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 16 Dec 2010 09:20:46 +0800
parents d60eda14e134
children 2dc54f49f83f
files etc/NEWS lisp/simple.el
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS	Thu Dec 16 00:55:04 2010 +0000
+++ b/etc/NEWS	Thu Dec 16 09:20:46 2010 +0800
@@ -232,6 +232,9 @@
 
 ** 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'.
--- a/lisp/simple.el	Thu Dec 16 00:55:04 2010 +0000
+++ b/lisp/simple.el	Thu Dec 16 09:20:46 2010 +0800
@@ -762,7 +762,7 @@
 
 (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))