GNU bug report logs - #52329
Fix alignment of makefile-backslash-region

Previous Next

Package: emacs;

Reported by: Fredrik Bergroth <fbergroth <at> gmail.com>

Date: Mon, 6 Dec 2021 13:03:01 UTC

Severity: normal

Tags: patch

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 52329 <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Bergroth <fbergroth <at> gmail.com>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 52329 <at> debbugs.gnu.org
Subject: Re: bug#52329: Fix alignment of makefile-backslash-region
Date: Mon, 6 Dec 2021 15:07:17 +0100
[Message part 1 (text/plain, inline)]
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 <stefan <at> marxist.se>:

> Fredrik Bergroth <fbergroth <at> gmail.com> 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"?
>
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 255 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.