Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
Given the c buffer:
int main()
{
if (1) {
x = foo;
}
return 0;
}
`M-x whitespace-cleanup' will result in:
int main()
{
if (1) {
x= foo;
}
return 0;
}
This is because `whitespace-indentation-regexp' includes a trailing
"[^\n\t]", which matches the x. After `re-search-forward' of
`whitespace-cleanup-region' the point is now after the `x'. In order
for the subsequent `delete-horizontal-space' to work, a
(forward-char -1) should probably be done, before the
`current-indentation' call.