From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris 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:06:38 -0400 Message-ID: References: <5551D233.1090202@orange.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1431446846 17252 80.91.229.3 (12 May 2015 16:07:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2015 16:07:26 +0000 (UTC) Cc: 20560@debbugs.gnu.org To: Fabrice Salvaire Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 12 18:07:13 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 1YsCi8-0006Qr-Kz for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 May 2015 18:07:12 +0200 Original-Received: from localhost ([::1]:43854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsCi7-00022f-IU for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 May 2015 12:07:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsCi4-00022a-6j for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 12:07:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsChy-0006k8-JO for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 12:07:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsChy-0006k4-GF for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 12:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YsChx-00037B-R8 for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 12:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 May 2015 16:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20560 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20560-submit@debbugs.gnu.org id=B20560.143144680311945 (code B ref 20560); Tue, 12 May 2015 16:07:01 +0000 Original-Received: (at 20560) by debbugs.gnu.org; 12 May 2015 16:06:43 +0000 Original-Received: from localhost ([127.0.0.1]:42561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsChe-00036a-8B for submit@debbugs.gnu.org; Tue, 12 May 2015 12:06:42 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:57160 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsChb-00036R-Gq for 20560@debbugs.gnu.org; Tue, 12 May 2015 12:06:40 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YsCha-0002hI-I6; Tue, 12 May 2015 12:06:38 -0400 X-Spook: UFO HAMASMOIS SP4 Aldergrove Commecen jihad Noriega Putin X-Ran: 6 (Fabrice Salvaire's message of "Tue, 12 May 2015 12:13:07 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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:102708 Archived-At: Fabrice Salvaire wrote: > my_list = [ > ____1, 2, 3, > ____4, 5, 6, > ] When I type that, I get an error, so perhaps it is not intended: Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) =(nil 5) python-syntax-closing-paren-p() (and (python-syntax-closing-paren-p) (progn (forward-char 1) (not (nth 1 (or nil (syntax-ppss)))))) (if (and (python-syntax-closing-paren-p) (progn (forward-char 1) (not (nth 1 (or nil (syntax-ppss)))))) (progn (cons :inside-paren-at-closing-paren start))) (save-excursion (skip-syntax-forward " ") (if (and (python-syntax-closing-paren-p) (progn (forward-char 1) (not (nth 1 (or nil (syntax-ppss)))))) (progn (cons :inside-paren-at-closing-paren start)))) > automatically, but I would prefer manual indentation than to fight > against my editor. Sounds like you want to turn off electric-indent-mode.