GNU bug report logs - #45922
27.1; Better auto-fill for strings in python-mode

Previous Next

Package: emacs;

Reported by: Акимжанчег <zelenaruta <at> gmail.com>

Date: Sat, 16 Jan 2021 22:49:02 UTC

Severity: normal

Tags: moreinfo, wontfix

Found in version 27.1

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

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Акимжанчег <zelenaruta <at> gmail.com>,
 45922 <at> debbugs.gnu.org
Subject: Re: bug#45922: 27.1; Better auto-fill for strings in python-mode
Date: Sat, 07 May 2022 13:28:15 -0400
> But this reminds me that auto-fill-mode in programming modes is a bad
> idea in general:

Or at least, it needs to be custom-tailored (as in `smie-auto-fill` or
things along these lines).

In many/most programming languages the only real trouble is
inserting/adding newlines inside strings or newline-terminated comments.

> So I think the answer to this bug report is really -- don't use
> auto-fill in python-mode, and I'm closing it as a wontfix.

Yup, in python-mode (and other programming modes where LF is not always
treated as whitespace) it does need a lot more care.


        Stefan





This bug report was last modified 3 years and 16 days ago.

Previous Next


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