Make `cycle-spacing' behave more like `just-one-space' if colled once.
authorMichal Nazarewicz <mina86@mina86.com>
Fri, 28 Mar 2014 16:26:15 +0000 (17:26 +0100)
committerMichal Nazarewicz <mina86@mina86.com>
Fri, 28 Mar 2014 16:26:15 +0000 (17:26 +0100)
commit687e0e19ae4dbd1a6fc3f6d3d21fd6b754e7589d
treed8bb4a9be7427f3dd5102b7f33934f817f04cca2
parent82a863c134dcab10ec1049272caf5d14557994fc
Make `cycle-spacing' behave more like `just-one-space' if colled once.

* simple.el (cycle-spacing): Never delete spaces on first run by
default, but do so in a new 'fast mode and if there are already
N spaces (the previous behaviour).

Compare N with its value in previous invocation so that changing
prefix argument restarts `cycle-spacing' sequence.

The idea is that with this change, binding M-SPC to
`cycle-spacing' should not introduce any changes in behaviour of
the binding so long as users do not type M-SPC twice in a raw with
the same prefix argument or lack thereof.
lisp/ChangeLog
lisp/simple.el