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

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

bug#45922: 27.1; Better auto-fill for strings in python-mode


From: Stefan Monnier
Subject: bug#45922: 27.1; Better auto-fill for strings in python-mode
Date: Sat, 07 May 2022 13:28:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> 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






reply via email to

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