diff options
| author | Tassilo Horn | 2010-12-07 20:38:38 +0100 |
|---|---|---|
| committer | Tassilo Horn | 2010-12-07 20:38:38 +0100 |
| commit | 11c31b99b3df49323d3d59aea118d3f17c1291a4 (patch) | |
| tree | db681c1c3ea6ea53db19fca92df7690874edbf8f | |
| parent | a733fc371502abdee5522daf40fa983de4015a41 (diff) | |
| download | emacs-11c31b99b3df49323d3d59aea118d3f17c1291a4.tar.gz emacs-11c31b99b3df49323d3d59aea118d3f17c1291a4.zip | |
* simple.el (just-one-space): Make argument n default to 1 if
omitted.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/simple.el | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 372730323c8..6eb650ae7bb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-12-07 Tassilo Horn <tassilo@member.fsf.org> | ||
| 2 | |||
| 3 | * simple.el (just-one-space): Make argument n default to 1 if | ||
| 4 | omitted. | ||
| 5 | |||
| 1 | 2010-12-07 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2010-12-07 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * electric.el (electric-indent-post-self-insert-function): | 8 | * electric.el (electric-indent-post-self-insert-function): |
diff --git a/lisp/simple.el b/lisp/simple.el index 7300fb78a88..da8ac55c01d 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -764,6 +764,7 @@ If BACKWARD-ONLY is non-nil, only delete them before point." | |||
| 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, deletes carriage return and linefeed characters as well." |
| 766 | (interactive "*p") | 766 | (interactive "*p") |
| 767 | (unless n (setq n 1)) | ||
| 767 | (let ((orig-pos (point)) | 768 | (let ((orig-pos (point)) |
| 768 | (skip-characters (if (< n 0) " \t\n\r" " \t")) | 769 | (skip-characters (if (< n 0) " \t\n\r" " \t")) |
| 769 | (n (abs n))) | 770 | (n (abs n))) |