aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2010-12-16 09:20:46 +0800
committerChong Yidong2010-12-16 09:20:46 +0800
commit1c708c1a5f859ece6f4926e423e5845577cdffbe (patch)
tree2990a17846d54865570781bd6087cd5d95067441
parent48ba8195646031e4e35635c2cff5f2aaf4585550 (diff)
downloademacs-1c708c1a5f859ece6f4926e423e5845577cdffbe.tar.gz
emacs-1c708c1a5f859ece6f4926e423e5845577cdffbe.zip
Doc fix for just-one-space change. Document it in NEWS.
-rw-r--r--etc/NEWS3
-rw-r--r--lisp/simple.el2
2 files changed, 4 insertions, 1 deletions
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'.
232 232
233** The default value of `backup-by-copying-when-mismatch' is now t. 233** The default value of `backup-by-copying-when-mismatch' is now t.
234 234
235** The command `just-one-space' (C-SPC), if given a negative argument,
236also deletes newlines around point.
237
235** Deletion changes 238** Deletion changes
236 239
237*** New option `delete-active-region'. 240*** 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."
762 762
763(defun just-one-space (&optional n) 763(defun just-one-space (&optional n)
764 "Delete all spaces and tabs around point, leaving one space (or N spaces). 764 "Delete all spaces and tabs around point, leaving one space (or N spaces).
765If N is negative, deletes carriage return and linefeed characters as well." 765If N is negative, delete newlines as well."
766 (interactive "*p") 766 (interactive "*p")
767 (unless n (setq n 1)) 767 (unless n (setq n 1))
768 (let ((orig-pos (point)) 768 (let ((orig-pos (point))