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 indentation sub-optimality and resolution Date: Thu, 18 Dec 2014 14:13:37 -0500 Message-ID: References: <87wq5ovmbb.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418930039 10760 80.91.229.3 (18 Dec 2014 19:13:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2014 19:13:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?windows-1252?Q?=D3scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 18 20:13:53 2014 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 1Y1gWG-0003mo-W1 for ged-emacs-devel@m.gmane.org; Thu, 18 Dec 2014 20:13:53 +0100 Original-Received: from localhost ([::1]:55469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1gWG-0002kc-6o for ged-emacs-devel@m.gmane.org; Thu, 18 Dec 2014 14:13:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1gW8-0002fm-9H for emacs-devel@gnu.org; Thu, 18 Dec 2014 14:13:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1gW2-0000IQ-Cp for emacs-devel@gnu.org; Thu, 18 Dec 2014 14:13:44 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:31148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1gW2-0000IK-8d for emacs-devel@gnu.org; Thu, 18 Dec 2014 14:13:38 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkEPAOwQflTO+ILA/2dsb2JhbABbgwdSgw6FWr8Ahh0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSSISgkN1kwBAQEBAQEEAQEBAQEZBJBvB4RIBYsBih6aEIF4hBkhgncBAQE X-IPAS-Result: AkEPAOwQflTO+ILA/2dsb2JhbABbgwdSgw6FWr8Ahh0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSSISgkN1kwBAQEBAQEEAQEBAQEZBJBvB4RIBYsBih6aEIF4hBkhgncBAQE X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="102915388" Original-Received: from 206-248-130-192.dsl.teksavvy.com (HELO pastel.home) ([206.248.130.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 18 Dec 2014 14:13:37 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 98A7C2D79; Thu, 18 Dec 2014 14:13:37 -0500 (EST) In-Reply-To: <87wq5ovmbb.fsf@wanadoo.es> (=?windows-1252?Q?=22=D3scar?= Fuentes"'s message of "Thu, 18 Dec 2014 19:34:48 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:180285 Archived-At: > Annoying indeed. For me this was fixed by ws-butler: > https://github.com/lewang/ws-butler > It has the advantage of cleaning up whitespace no matter how it was > created, but only on the lines you changed or added. AFAICT the code that John posted has the same property, more or less. In any case, I'd be happy to integrate something like that in Emacs. Stefan