diff options
Diffstat (limited to 'lisp')
-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 @@ +2010-12-07 Tassilo Horn <tassilo@member.fsf.org> + + * simple.el (just-one-space): Make argument n default to 1 if + omitted. + 2010-12-07 Stefan Monnier <monnier@iro.umontreal.ca> * 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." "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." (interactive "*p") + (unless n (setq n 1)) (let ((orig-pos (point)) (skip-characters (if (< n 0) " \t\n\r" " \t")) (n (abs n))) |