From: Chong Yidong Date: Thu, 16 Dec 2010 01:20:46 +0000 (+0800) Subject: Doc fix for just-one-space change. Document it in NEWS. X-Git-Tag: emacs-pretest-24.0.90~104^2~618^2~1322^2~278^2~101 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1c708c1a5f859ece6f4926e423e5845577cdffbe;p=emacs.git Doc fix for just-one-space change. Document it in NEWS. --- diff --git a/etc/NEWS b/etc/NEWS index 178631bc28b..8dd6d3ef9be 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -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'. diff --git a/lisp/simple.el b/lisp/simple.el index da8ac55c01d..ca365e9f854 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -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))