GNU bug report logs - #36056
26.2; Python Documentation String Indent In Auto Fill Mode

Previous Next

Package: emacs;

Reported by: ricercar <ricercar <at> lycos.com>

Date: Sun, 2 Jun 2019 14:55:01 UTC

Severity: normal

Tags: fixed

Found in version 26.2

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Dima Kogan <dima <at> secretsauce.net>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 36056 <at> debbugs.gnu.org
Subject: Re: bug#36056: Regression? (Python Documentation String Indent In
 Auto Fill Mode)
Date: Mon, 09 Sep 2019 15:02:37 -0700
Noam Postavsky <npostavs <at> 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.




This bug report was last modified 5 years and 248 days ago.

Previous Next


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