Subject: bug#52329: Fix alignment of makefile-backslash-region

From: Fredrik Bergroth <[email-masked]>
Date: Mon, 6 Dec 2021 15:07:17 +0100

Sure!

emacs -Q --eval '(makefile-mode)' --eval '(insert "a\nbbbbb\ncc")' --eval
'(mark-whole-buffer)' --eval "(call-interactively
'makefile-backslash-region)"

This will end up with a bunch of tabs (rather than spaces) after the "a"
and the b:s. If you now change tab-width to 2, the backslashes won't align.

Den mån 6 dec. 2021 kl 14:54 skrev Stefan Kangas <[email-masked]>:

> Fredrik Bergroth <[email-masked]> writes:
>
> > `makefile-backslash-region' is inserting tabs rather than spaces (due to
> the major mode setting indent-tabs-mode).
> > The backslashes won't align properly (unless everyone agrees on a
> tab-width). I attached a patch that fixes this.
>
> Thanks for the patch.
>
> Could you provide a recipe to reproduce this problem, preferably
> starting from "emacs -Q"?
>