From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Newsgroups: gmane.emacs.bugs Subject: bug#18819: 24.3.93; python-mode: fill-paragraph breaks comments in a way that annoys "flake8" Date: Sat, 15 Nov 2014 19:17:23 -0300 Message-ID: <87fvdk153g.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1416089896 14952 80.91.229.3 (15 Nov 2014 22:18:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Nov 2014 22:18:16 +0000 (UTC) To: 18819-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 15 23:18:10 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XplfV-00043E-Ob for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Nov 2014 23:18:09 +0100 Original-Received: from localhost ([::1]:42217 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XplfU-0006ui-Uf for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Nov 2014 17:18:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XplfQ-0006sE-Iv for bug-gnu-emacs@gnu.org; Sat, 15 Nov 2014 17:18:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XplfO-0004Vc-OA for bug-gnu-emacs@gnu.org; Sat, 15 Nov 2014 17:18:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XplfO-0004VS-M4 for bug-gnu-emacs@gnu.org; Sat, 15 Nov 2014 17:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XplfO-0007Ed-G1 for bug-gnu-emacs@gnu.org; Sat, 15 Nov 2014 17:18:02 -0500 In-Reply-To: Resent-From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Nov 2014 22:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 18819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 18819@debbugs.gnu.org, fgallina@gnu.org, eric.hanchrow@gmail.com Original-Received: via spool by 18819-done@debbugs.gnu.org id=D18819.141608984927759 (code D ref 18819); Sat, 15 Nov 2014 22:18:02 +0000 Original-Received: (at 18819-done) by debbugs.gnu.org; 15 Nov 2014 22:17:29 +0000 Original-Received: from localhost ([127.0.0.1]:34187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xpler-0007De-C5 for submit@debbugs.gnu.org; Sat, 15 Nov 2014 17:17:29 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:56620) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xplep-0007DW-1B for 18819-done@debbugs.gnu.org; Sat, 15 Nov 2014 17:17:27 -0500 Original-Received: from [190.246.172.180] (port=39389 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Xplen-0001rl-EJ for 18819-done@debbugs.gnu.org; Sat, 15 Nov 2014 17:17:26 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96090 Hello Eric, Note that inline comments are pretty much discouraged[0]. Leaving that aside, the problem is that inline comments should fit in their own line. In the example you provided, you are trying to make an inline comment that's too large to fit the line and in that case the recommendation would be to turn it into a normal comment just before the statement. So, surprisingly, it seems in this case both flake8 and python.el are right :) [0] https://www.python.org/dev/peps/pep-0008#inline-comments Thanks, Fabi=C3=A1n