From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Electric indentation sub-optimality and resolution Date: Thu, 18 Dec 2014 22:07:25 +0200 Message-ID: <86388chgci.fsf@yandex.ru> References: <87wq5ovmbb.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1418933275 31092 80.91.229.3 (18 Dec 2014 20:07:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Dec 2014 20:07:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?=C3=93scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 18 21:07:49 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 1Y1hMR-00054t-QX for ged-emacs-devel@m.gmane.org; Thu, 18 Dec 2014 21:07:47 +0100 Original-Received: from localhost ([::1]:55596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1hMR-0001Rh-3o for ged-emacs-devel@m.gmane.org; Thu, 18 Dec 2014 15:07:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1hMJ-0001Qk-HH for emacs-devel@gnu.org; Thu, 18 Dec 2014 15:07:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1hME-0006Yu-PI for emacs-devel@gnu.org; Thu, 18 Dec 2014 15:07:39 -0500 Original-Received: from mail-wg0-x231.google.com ([2a00:1450:400c:c00::231]:45293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1hME-0006Yn-Ib for emacs-devel@gnu.org; Thu, 18 Dec 2014 15:07:34 -0500 Original-Received: by mail-wg0-f49.google.com with SMTP id n12so2613964wgh.22 for ; Thu, 18 Dec 2014 12:07:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=OFzbQzS5EzsFMAiHdT1xxKeo8G5qJLLpomdzist0Hpc=; b=Pwi+2jpFOon0dqkkjVIjAupvI5eBmolAfaqjJeN4/kEZ6zctmtNUJnpJ+LHHp5/HhG K5WibvpYvorxQVYOpQvwcx6lg08f+Nvb5n2bC74jBF9GPA4/E6RUWqi7ua4RwGyrvIuk GCAavT9BvOkMgL3cPPWLMnyrvHaWYH3/uRS+mxzwfl1JOn7hRWLUt+bsUwOIDqCbkKOY hQ7gLDR07il/vEvje0fqntNse6EGrW3rJsKlfol6y7r3xtJsrnNKeXQLbuydR6QNNWes 5CGzvf/2TZUnqBxS2VVEGOUpoT45nPUYTwO2H1LtMi8bSkz34iIj0PYqOHvHqownDoLa ftdg== X-Received: by 10.180.7.198 with SMTP id l6mr8438955wia.26.1418933253908; Thu, 18 Dec 2014 12:07:33 -0800 (PST) Original-Received: from axl ([82.102.93.58]) by mx.google.com with ESMTPSA id lg7sm11196618wic.0.2014.12.18.12.07.31 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 18 Dec 2014 12:07:33 -0800 (PST) In-Reply-To: <87wq5ovmbb.fsf@wanadoo.es> (=?utf-8?Q?=22=C3=93scar?= 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: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::231 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:180290 Archived-At: =C3=93scar Fuentes writes: > Annoying indeed. For me this was fixed by ws-butler: > > https://github.com/lewang/ws-butler Personally, I like this lighter-weight approach: https://github.com/purcell/whitespace-cleanup-mode Admittedly, it's only a good solution when the fraction of files with pre-existing trailing whitespace that you have to edit is small.