unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Fredrik Bergroth <fbergroth@gmail.com>
To: Stefan Kangas <stefan@marxist.se>
Cc: 52329@debbugs.gnu.org
Subject: bug#52329: Fix alignment of makefile-backslash-region
Date: Mon, 6 Dec 2021 15:07:17 +0100	[thread overview]
Message-ID: <CAEgW6ZRCotN7v3NnQszFywZJSAzJb6+who7_+0-oaGjPPA8tsA@mail.gmail.com> (raw)
In-Reply-To: <CADwFkm=Q7yiL1-TmEDePrn8y87dj3+OOu-wrhVnmmZnqUqkCTQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 823 bytes --]

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@marxist.se>:

> Fredrik Bergroth <fbergroth@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"?
>

[-- Attachment #2: Type: text/html, Size: 1313 bytes --]

  reply	other threads:[~2021-12-06 14:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-06 13:02 bug#52329: Fix alignment of makefile-backslash-region Fredrik Bergroth
2021-12-06 13:54 ` Stefan Kangas
2021-12-06 14:07   ` Fredrik Bergroth [this message]
2022-09-08 14:32     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEgW6ZRCotN7v3NnQszFywZJSAzJb6+who7_+0-oaGjPPA8tsA@mail.gmail.com \
    --to=fbergroth@gmail.com \
    --cc=52329@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).