bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36056: Regression? (Python Documentation String Indent In Auto Fill


From: Dima Kogan
Subject: bug#36056: Regression? (Python Documentation String Indent In Auto Fill Mode)
Date: Mon, 09 Sep 2019 15:02:37 -0700
User-agent: mu4e 1.0; emacs 27.0.50

Noam Postavsky <npostavs@gmail.com> writes:

> The problem seems to be that fill-newline puts the space on the new
> line when breaking the line, and python-indent-line (which is called
> when fill-indent-according-to-mode is t) leaves indentation inside
> strings as-is.
>
> Maybe the solution is to bind fill-indent-according-to-mode only during
> auto-filling?  The patch below seems to work for both this bug's OP, and
> your case.

Thanks for looking at this. I haven't tried your proposed patch, but it
certainly looks like it would work. Do you think it's a reasonable
solution? Feels a bit like a workaround, but we have comments and tests,
so maybe it's fine, I guess.

Thanks again.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]