Commit 11c31b99 authored by Tassilo Horn's avatar Tassilo Horn
Browse files

* simple.el (just-one-space): Make argument n default to 1 if

omitted.
parent a733fc37
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):
......
......@@ -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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment