diff options
| author | Chong Yidong | 2010-12-16 09:20:46 +0800 |
|---|---|---|
| committer | Chong Yidong | 2010-12-16 09:20:46 +0800 |
| commit | 1c708c1a5f859ece6f4926e423e5845577cdffbe (patch) | |
| tree | 2990a17846d54865570781bd6087cd5d95067441 | |
| parent | 48ba8195646031e4e35635c2cff5f2aaf4585550 (diff) | |
| download | emacs-1c708c1a5f859ece6f4926e423e5845577cdffbe.tar.gz emacs-1c708c1a5f859ece6f4926e423e5845577cdffbe.zip | |
Doc fix for just-one-space change. Document it in NEWS.
| -rw-r--r-- | etc/NEWS | 3 | ||||
| -rw-r--r-- | lisp/simple.el | 2 |
2 files changed, 4 insertions, 1 deletions
| @@ -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, | ||
| 236 | also 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). |
| 765 | If N is negative, deletes carriage return and linefeed characters as well." | 765 | If 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)) |