From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: electric-indent-mode: abolition of `newline' function is not the Right Thing. Date: Mon, 14 Oct 2013 09:21:16 -0400 Message-ID: References: <20131013101325.GA2621@acm.acm> <878uxxlz5q.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381756893 24333 80.91.229.3 (14 Oct 2013 13:21:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2013 13:21:33 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Matthias Meulien Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 14 15:21:36 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VVi5X-0003rB-Pl for ged-emacs-devel@m.gmane.org; Mon, 14 Oct 2013 15:21:35 +0200 Original-Received: from localhost ([::1]:36807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVi5X-0008G4-Ch for ged-emacs-devel@m.gmane.org; Mon, 14 Oct 2013 09:21:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVi5N-0008Eu-76 for emacs-devel@gnu.org; Mon, 14 Oct 2013 09:21:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVi5F-0006O5-Uf for emacs-devel@gnu.org; Mon, 14 Oct 2013 09:21:25 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:15269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVi5F-0006NP-Pk for emacs-devel@gnu.org; Mon, 14 Oct 2013 09:21:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFMCqeW/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFFMCqeW/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="35446895" Original-Received: from 76-10-167-150.dsl.teksavvy.com (HELO pastel.home) ([76.10.167.150]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Oct 2013 09:17:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id BF62460A97; Mon, 14 Oct 2013 09:21:16 -0400 (EDT) In-Reply-To: <878uxxlz5q.fsf@gmail.com> (Matthias Meulien's message of "Sun, 13 Oct 2013 22:00:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164199 Archived-At: > For the same reason it is impossible to write Python code with both > python-skeleton-autoinsert' set to t and Electric Indent mode enabled... > Say a buffer contains the following three lines: > class base(object): pass > -!- > Now you hit c l a s s SPC d e r i v e d RET b a s e RET RET > which results in: > class base(object): pass > class derived(base): > """-!-""" > Unexpected isn't it? I can't reproduce it on trunk, probably thanks to the new electric-indent-inhibit, which is set in python-mode. Stefan