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: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC Mode. Bug #15478. Date: Tue, 25 Mar 2014 03:49:44 +0200 Message-ID: <8761n39hdz.fsf@yandex.ru> References: <20140308225820.GB2726@acm.acm> <20140309123711.GA2615@acm.acm> <20140316223509.GD3854@acm.acm> <20140319224231.GB4783@acm.acm> <20140322131350.GA3163@acm.acm> <20140322231012.GB3562@acm.acm> <87wqfkgk02.fsf@uwakimon.sk.tsukuba.ac.jp> <871txsge04.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1395712196 28622 80.91.229.3 (25 Mar 2014 01:49:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2014 01:49:56 +0000 (UTC) Cc: Alan Mackenzie , "Stephen J. Turnbull" , emacs-devel@gnu.org To: Stefan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 25 02:50:05 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 1WSGVA-0001zK-LW for ged-emacs-devel@m.gmane.org; Tue, 25 Mar 2014 02:50:04 +0100 Original-Received: from localhost ([::1]:39237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSGV9-0007y6-J1 for ged-emacs-devel@m.gmane.org; Mon, 24 Mar 2014 21:50:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSGV1-0007wd-AC for emacs-devel@gnu.org; Mon, 24 Mar 2014 21:50:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSGUv-0005G5-Iu for emacs-devel@gnu.org; Mon, 24 Mar 2014 21:49:55 -0400 Original-Received: from mail-ee0-x232.google.com ([2a00:1450:4013:c00::232]:60138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSGUv-0005G0-BD for emacs-devel@gnu.org; Mon, 24 Mar 2014 21:49:49 -0400 Original-Received: by mail-ee0-f50.google.com with SMTP id c13so5150831eek.9 for ; Mon, 24 Mar 2014 18:49:48 -0700 (PDT) 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; bh=gs9F2beUv2YJl2LnvYyD+jOnGw/P7W/JZfXUIy/L8H4=; b=FuHT8v2dWgATRbnWvxMP6xesmGL7Gh9n6FWpwU3hptmd073E9xqKg0I4g6p2HAOo1u D/4F6vJq4mCmsK0XL2gIPZVazDzInmQEngCfAPJ5qQn10AVMGYAS99R5FG5DG/Yiet9D gX42rBkrdONj2Osbo9dXZWEGFt/dnVbDvWnh717WhEIvBM08yEFNHVkzISG5ags5QKFx D7i2MFckISwBj6qlh/d61Z00ry8ZmPbMCNpc+kXtw/avWjVWNqX4rLrC55lyyHqiPloq hPVqkxuD+Rp1qk9BCS7Nedz2W+PZtZPFSMOf/bcFv6H6VLs3D24gij6mDyVLEcB23px0 TEVA== X-Received: by 10.15.31.137 with SMTP id y9mr66773122eeu.12.1395712188371; Mon, 24 Mar 2014 18:49:48 -0700 (PDT) Original-Received: from axl ([93.109.138.177]) by mx.google.com with ESMTPSA id o5sm36897862eeg.8.2014.03.24.18.49.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 24 Mar 2014 18:49:47 -0700 (PDT) In-Reply-To: (Stefan's message of "Mon, 24 Mar 2014 14:32:05 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::232 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:170943 Archived-At: Stefan writes: > You might get used to "RET reindents" and stop hitting TAB that often > ;-) Maybe. :) But if I'm going to type anything else at all on the given line before typing RET, the hand is itching to reindent before that, to make text look ordered. > For me one of the reasons why it's not gratuitous is because of things like: > > begin > blabla > blibli > end > > Go to just before "blibli" and type "end RET": notice that hitting TAB > just before RET won't help you, because you need to reindent the line > after the newline is inserted. I can see how this could be handy, but it's not an example I see frequently. In part because I use `ruby-end', which inserts `end' after one types a block beginner and SPC or RET. So one's inclined to produce all `end' keywords that way, to keep them paired. In any case, this seems to depend on the language having keyword-delimited blocks and no semicolons. This does not characterize the majority of the languages Emacs supports, I think. >> For all others, just swapping C-j and RET bindings would've worked just >> as well, and I think it would result in simpler code. > > Again "just swapping" sounds simple, but I'm not sure what patch you > have in mind. I've commented on Alan's proposed plan of action. > I think it's important for the user to be able to easily > say something like (electric-indent-mode -1) (and/or its buffer-local > equivalent) to recover the Emacs-23 behavior. The importance of this is not clear to me, but I guess it wouldn't hurt to have this, either way.