From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#24809: 25.1; Python.el improper indention after backslash-assignment-continuation Date: Mon, 22 May 2017 11:31:40 -0400 Message-ID: <87h90cgb6r.fsf@users.sourceforge.net> References: <871sz1ih58.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1495467077 29488 195.159.176.226 (22 May 2017 15:31:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 May 2017 15:31:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 24809@debbugs.gnu.org To: Jules Tamagnan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 22 17:31:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCpIb-0007W6-Rv for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 May 2017 17:31:09 +0200 Original-Received: from localhost ([::1]:43545 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCpIh-0005Sf-5b for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 May 2017 11:31:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCpIY-0005RF-KK for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 11:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCpIV-00014n-G0 for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 11:31:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58654) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCpIV-00014X-19 for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 11:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dCpIU-0007No-JZ for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 11:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 May 2017 15:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24809 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24809-submit@debbugs.gnu.org id=B24809.149546701028320 (code B ref 24809); Mon, 22 May 2017 15:31:02 +0000 Original-Received: (at 24809) by debbugs.gnu.org; 22 May 2017 15:30:10 +0000 Original-Received: from localhost ([127.0.0.1]:33098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCpHe-0007Mi-BG for submit@debbugs.gnu.org; Mon, 22 May 2017 11:30:10 -0400 Original-Received: from mail-it0-f42.google.com ([209.85.214.42]:36954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCpHd-0007Lf-1o for 24809@debbugs.gnu.org; Mon, 22 May 2017 11:30:09 -0400 Original-Received: by mail-it0-f42.google.com with SMTP id g126so81588269ith.0 for <24809@debbugs.gnu.org>; Mon, 22 May 2017 08:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XMGpzWtgRO2nLVCpUQtTaAgmKK9cB1YyV51akUNueO0=; b=eeOcYmnGCuszK5JVtbkhn1LzFSSWTGK2VhaoO3XPCBbiogJMZ/GJoKWxm9KRCoNjPt eiptC85SC9L7x8i0TsByzgste9GWmIq/Gndj9NyiVRCJHGVMLtwpljd5m3aJbbN2kQZq Vzhw/LZVro+KEqfRstsXw2Capucm4FqQWmbV0dvf3sh4ETSDddUhPQR6tnlkQ+jxHmmm M+1U8PzNIg7ehBmMCLZrVdTTe2fzR3ww6zaOjGt78DUfBdgsw6fq8vr3o/DDfoDGHejO RFd1/4KUADXl6Tj1i8GhewFJyq7vEmskznWi74umST2IQdySqfDUXAgB5Yf/jWa45DJT m0bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=XMGpzWtgRO2nLVCpUQtTaAgmKK9cB1YyV51akUNueO0=; b=qF+UKYMABAMox/Zq9+FU9Mz3ZWljhvnS0AEl0HxpTqnLwDDjtkdFYW0XvtIoeWUMTL 4WCb70zFaaQchIWwdzMAde/SwYgkXyCio+02Vpf/Lq6jQl/XawKLnlKbclaqkE1TseY1 +QQ3U30nj7lZovjT7CAE9ljHShQaHs5/mIV+z04ovQcR8KTp9tL4e1XNLOcJSlYAIfmz npOc++S617XOepWiBTsooR6dGIEUf+VfUwMQ+QvF+KxBBF94CMkZXGuaq/tmS20TOH1Z JUQTNI3ZWB/nqjs/kCHS9tq3qPSIfcyr9Ao3uL56b8uYXxsW5RSYcd85ZGDPjkBL2YPM pCXA== X-Gm-Message-State: AODbwcAZSNb8m3qcI7+4K255Zc4GRDHMjY6t/DZR5NPShdvnbLdHebXV 86L/giydViGhNA== X-Received: by 10.36.75.12 with SMTP id q12mr39459735ita.34.1495467003343; Mon, 22 May 2017 08:30:03 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 140sm7972793itl.2.2017.05.22.08.30.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 May 2017 08:30:02 -0700 (PDT) In-Reply-To: <871sz1ih58.fsf@gmail.com> (Jules Tamagnan's message of "Thu, 27 Oct 2016 15:03:31 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:132732 Archived-At: Jules Tamagnan writes: > The bug is quite simple. > - Open a python file. > - Type: > hello = \ > - C-m ; newline > > The point will now be directly under the backslash character. This is > indented incorrectly according to the pep8 style guide and the > pycodestyle checker, it should instead be indented > `python-indent-offset` further than the previous line. So the patch works (additionally the python-indent-after-backslash-4 test would need to be updated) but I'm not sure if it's correct. Currently, the pep8 style guide doesn't really say anything about indentation following backslash, it just recommends using parens instead.