From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Salvaire Newsgroups: gmane.emacs.bugs Subject: bug#20560: 24.5; I am not happy with the new Python mode indentation behaviour Date: Tue, 12 May 2015 12:13:07 +0200 Message-ID: <5551D233.1090202@orange.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1431445464 25684 80.91.229.3 (12 May 2015 15:44:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2015 15:44:24 +0000 (UTC) To: 20560@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 12 17:44:12 2015 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 1YsCLr-0003t5-QC for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 May 2015 17:44:11 +0200 Original-Received: from localhost ([::1]:43679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsCLr-0006O1-5Q for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 May 2015 11:44:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsCLm-0006M8-FG for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 11:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsCLi-0008Iv-JU for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 11:44:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsCLi-0008Ir-GO for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 11:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YsCLi-00010n-8d for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 11:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fabrice Salvaire Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 May 2015 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20560 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14314453953807 (code B ref -1); Tue, 12 May 2015 15:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 May 2015 15:43:15 +0000 Original-Received: from localhost ([127.0.0.1]:42544 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsCKw-0000zK-8e for submit@debbugs.gnu.org; Tue, 12 May 2015 11:43:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39722) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ys7Bg-0007zo-VG for submit@debbugs.gnu.org; Tue, 12 May 2015 06:13:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ys7Ba-0003Iw-Uo for submit@debbugs.gnu.org; Tue, 12 May 2015 06:13:15 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys7Ba-0003Is-SQ for submit@debbugs.gnu.org; Tue, 12 May 2015 06:13:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys7BZ-00024p-Pj for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 06:13:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ys7BW-0003Hm-IP for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 06:13:13 -0400 Original-Received: from smtp03.smtpout.orange.fr ([80.12.242.125]:58956 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys7BW-0003H4-Ax for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 06:13:10 -0400 Original-Received: from salus.localdomain ([213.41.136.101]) by mwinf5d50 with ME id SyD71q00F2BSCth03yD8vb; Tue, 12 May 2015 12:13:08 +0200 X-ME-Helo: salus.localdomain X-ME-Auth: ZmFicmljZS5zYWx2YWlyZUB3YW5hZG9vLmZy X-ME-Date: Tue, 12 May 2015 12:13:08 +0200 X-ME-IP: 213.41.136.101 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Tue, 12 May 2015 11:43:12 -0400 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:102705 Archived-At: Dear Emacs devs, I noticed after an Emacs update the Python mode changed its indentation behaviour. I checked my .emacs and .gnu-emacs-custion for settings that could interfere with the Python mode, but I found anything. First it imposes a newer indentation style, the closing brace/bracket/parenthesis on multi-line constructs line up under the first character of the line that starts the multi-line construct: my_list = [ ____1, 2, 3, ____4, 5, 6, ] while I have thousands lines of codes typed on Emacs where the closing character is indented, e.g.: my_list = [ ____1, 2, 3, ____4, 5, 6, ____] Moreover if you press enter in the following construct at the location marked by * to add an empty line or to add codes after the if: if foo: ____a = 1 *a = 2 then the line is automatically indented: if foo: ____a = 1 ____a = 2 Thus I have to fight continuously with the indentation and it will probably increase the indentation noise in the VCS. I guess Python is not the most easier language to indent automatically, but I would prefer manual indentation than to fight against my editor. Sincerely yours, Fabrice