tags 18783 patch quit nisse@lysator.liu.se (Niels Möller) writes: > The function fixup-whitespace leaves a trailing space when invoked at > the end of a line (and this bug is a lot older than emacs-24.4). Seems to have been present since the beginning, 1991-12-21 "Initial revision" shows the same code. > To reproduce: Run emacs -Q. Type x, to get a line containing "x" and > with point at the end. Type M-x fixup-whitespace RET. A space is added, > so we get a line containing "x ". > > I think this is a bug, because it's inconsistent with spacing > conventions I'm aware of, and the space is deleted by emacs' M-x > whitespace-cleanup. > > Patch below seems to solve the problem. Looks good to me, I will push to master in a few days.