From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tomas Nordin Newsgroups: gmane.emacs.bugs Subject: bug#45922: 27.1; Better auto-fill for strings in python-mode Date: Sun, 17 Jan 2021 21:18:40 +0100 Message-ID: <87r1mjb9lr.fsf@posteo.net> References: <87bldnzsep.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28221"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45922@debbugs.gnu.org To: =?UTF-8?Q?=D0=90=D0=BA=D0=B8=D0=BC=D0=B6=D0=B0=D0=BD=D1=87=D0=B5=D0=B3?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 17 21:20:45 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1EXU-0007Fd-UW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Jan 2021 21:20:45 +0100 Original-Received: from localhost ([::1]:39282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1EXT-0000Y6-Um for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Jan 2021 15:20:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1EVr-0007Eu-9T for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 15:19:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34198) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1EVq-0006KW-Ae for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 15:19:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1EVq-000677-5t for bug-gnu-emacs@gnu.org; Sun, 17 Jan 2021 15:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tomas Nordin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Jan 2021 20:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45922 X-GNU-PR-Package: emacs Original-Received: via spool by 45922-submit@debbugs.gnu.org id=B45922.161091473223483 (code B ref 45922); Sun, 17 Jan 2021 20:19:02 +0000 Original-Received: (at 45922) by debbugs.gnu.org; 17 Jan 2021 20:18:52 +0000 Original-Received: from localhost ([127.0.0.1]:45744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1EVg-00066h-1U for submit@debbugs.gnu.org; Sun, 17 Jan 2021 15:18:52 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:45031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1EVb-00066R-1x for 45922@debbugs.gnu.org; Sun, 17 Jan 2021 15:18:50 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 5B1602400FC for <45922@debbugs.gnu.org>; Sun, 17 Jan 2021 21:18:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1610914721; bh=CJkPiSVe2OBx98iLP/a5NCOpUUUxuzmkVVVkOIIhw+0=; h=From:To:Cc:Subject:Date:From; b=iZVpD/ejqfDwW1eBTh02J/bVD1jU5FCRX9V2u0tS4F5yxX4LYzGxlaaZ4hRby+urO iO0o+uA2ZdzFnOI2DAX40MFKUmJmkI74PYEbEVEzel1Z2JpAKSnpCLq3Tq/z3QlXgm PJSC1lPRpXBZuyFW32+Mt+iNYWVle5lGQFqxuD7rFZVrqGNtSQzLtV73isx0Zb5MXI rkF2MR4ID3yucM2/h7orQp9Uzul67WmMjWCljnB3N1/8aIpbvS8Od6VEBeMBnS0g+U gTDGKB2WnlOXZaKSMM9ODY1blwjB5DSDoekqZClAPMk/QFAjshiBATUIssGfYelJ9q eaB44nz2Izt0Q== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DJmTD52s1z6tmG; Sun, 17 Jan 2021 21:18:40 +0100 (CET) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:198064 Archived-At: =D0=90=D0=BA=D0=B8=D0=BC=D0=B6=D0=B0=D0=BD=D1=87=D0=B5=D0=B3 writes: >> >> >> From the recepie it would seem like fill-column is set to something low. >> But probably you have some indentation there prior to 'matrix =3D ...'? >> > Yes there were 8 spaces before that > >> I don't think there is something in python mode that do what you are >> suggesting as of now. For curiosity, do you see this kind of support in >> other editors? >> > Emacs is the only editor I ever used, but when I write a comment and reach > the fill-column auto-fill-mode opens a new line and puts the comment > character there, so I thought if it does it for comments then it might as > well do it for strings. The one and true editor. I /think/ the filling of comments gets handled by fill.el. Filling of one-line strings would have to be handled by python.el. I was looking to see if it tries to support that but couldn't find indications it does. Cannot find that it documents to support it. I agree it could be convenient and understand the expectation based on the comment filling. Might be difficult to implement tho.