From 1c708c1a5f859ece6f4926e423e5845577cdffbe Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 16 Dec 2010 09:20:46 +0800 Subject: [PATCH] Doc fix for just-one-space change. Document it in NEWS. --- etc/NEWS | 3 +++ lisp/simple.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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)) -- 2.39.5