From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman@google.com (T.V Raman) Newsgroups: gmane.emacs.bugs Subject: bug#19272: 25.0.50; electric-indent-mode: Appears to do the opposite Date: Thu, 4 Dec 2014 14:54:44 -0800 Message-ID: <21632.58932.508664.164560@retriever.mtv.corp.google.com> References: <20141204221139.86993.qmail@mail.muc.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1417733725 31668 80.91.229.3 (4 Dec 2014 22:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2014 22:55:25 +0000 (UTC) Cc: 19272@debbugs.gnu.org, raman@google.com To: acm@muc.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 04 23:55:18 2014 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 1XwfIr-0003XC-Lu for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Dec 2014 23:55:17 +0100 Original-Received: from localhost ([::1]:48043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwfIr-0006kb-Bz for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Dec 2014 17:55:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwfIi-0006gf-NP for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 17:55:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwfIc-0007HH-Mf for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 17:55:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwfIc-0007H4-HQ for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 17:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XwfIc-00050X-2t for bug-gnu-emacs@gnu.org; Thu, 04 Dec 2014 17:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: raman@google.com (T.V Raman) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Dec 2014 22:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19272-submit@debbugs.gnu.org id=B19272.141773368919223 (code B ref 19272); Thu, 04 Dec 2014 22:55:01 +0000 Original-Received: (at 19272) by debbugs.gnu.org; 4 Dec 2014 22:54:49 +0000 Original-Received: from localhost ([127.0.0.1]:54098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwfIO-0004zv-K3 for submit@debbugs.gnu.org; Thu, 04 Dec 2014 17:54:49 -0500 Original-Received: from mail-yh0-f73.google.com ([209.85.213.73]:40256) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XwfIM-0004zl-6P for 19272@debbugs.gnu.org; Thu, 04 Dec 2014 17:54:46 -0500 Original-Received: by mail-yh0-f73.google.com with SMTP id f10so1029657yha.2 for <19272@debbugs.gnu.org>; Thu, 04 Dec 2014 14:54:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:cc:subject:in-reply-to:references; bh=7PUPXAqQWLhyzk3a01v0niMjxrkYnM71m1saUDgEmQ0=; b=cL/gv7e5FSFY0FVoE3IdEQVT+AVXnnuj8BpU40fVx0KbmECCxOdpKwh6pPii0rU/AV bNr1iTZ60rIvKKny+COuPtlKTZ2HBmLY7wokBvjGl4ieNHzzDxVJrOjYW/tGAeUTvpKJ HNRC5Ae+PKYZUHk6ExZWLDf1xUBduXVwR05r29hcqw+3CYy1/y0WEffS8iqs3xaTqbSV oeaXCVCUCPbJAhY+M64kXetY7nnzTiOyr6uch1+07eQcuuG24vJmDDvan6GallcW+DgG uyNW0sSSY5gxytpJHXRNIRqKFBJILynm7Hi3a6c8uUmq8FTMqW1u4Gi8aV5dNAqyDXiL pL2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:cc:subject:in-reply-to :references; bh=7PUPXAqQWLhyzk3a01v0niMjxrkYnM71m1saUDgEmQ0=; b=hExAPu9zfi+nbnZA1fW8gGqlXQAZ6nDUxQYE7IucfX5X1aYSte7WLlE+PgD03w6Z+M 5UpLSldF/QyyzSBZ6tEyla8vBeiVGStJAyYCZgUYBfkkfFZcA3t0HEb2F/GcKv95fiY+ AxNQcGErlf73HVG501mvrK64oB4Jys9kUq89wt4ZdGmMZ0l9WCMWWfcdT/eUs4XD1FsI 8oAhtS4sgYH/vft8hPm915k9qSMwbC2Qgclp5vbcVPslRICQGQKnpGx34+EEpnlFgMB5 APOqzxfrIBsAXfHtbJMYs46wJ7ooLJqGq/DvU5obyzR0FkecemqCqVs776lUPzm7ylaH v2Dg== X-Gm-Message-State: ALoCoQnvez5oaNxVZBT1B4JGWSFPbrj9yZi3Qseo/rCMJBzlLmU5/GLKkWsQTiMdK4RWaMzGoiYciEcHReeyg/brpL+LeCW6FwE1u3ByKXA3XWGUgRpIaBi3dlA5Xeu5ESgqK54zmNH+rX+PqMZmcyYNQIg9yY6EdBjT7Y5Zv9ipRj189D85+zk= X-Received: by 10.236.32.204 with SMTP id o52mr12125910yha.53.1417733685441; Thu, 04 Dec 2014 14:54:45 -0800 (PST) Original-Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id 5si1193968yhd.6.2014.12.04.14.54.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Dec 2014 14:54:45 -0800 (PST) Original-Received: from retriever.mtv.corp.google.com ([172.22.128.40]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id PpFg9XMs.1; Thu, 04 Dec 2014 14:54:45 -0800 Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 977F51A02C4; Thu, 4 Dec 2014 14:54:44 -0800 (PST) In-Reply-To: <20141204221139.86993.qmail@mail.muc.de> X-Mailer: VM 8.1.1 under 25.0.50.1 (x86_64-unknown-linux-gnu) 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:96873 Archived-At: Thanks for the explanation -- this is super helpful. One suggestion: couldn't we just have both C-j and RET do newline-and-then-indent? Alan Mackenzie writes: > In article you wrote: > > > In both Emacs 24.4 -- as well as Emacs 25 built from head: > > > In lisp buffers electric-indent-mode is on by default. > > electric-indent-mode is now enabled everywhere, by default. > > > But if it is on, then hitting C-j does not indent -- it ends up leaving > > point on the first column in the newly inserted line. > > This is deliberate - the swapping of the actions of C-j and RET. Most > people on the developers' mailing list agreed it was time to do this, for > the benefit of new users who expect auto indentation of the new line, but > who aren't used to typing C-j for it. > > However, this change in key actions has been conflated with > electric-indent-mode. En/dis-able that minor mode, and the action of your > keys is swapped. > > > I do have 10 in the list electric-indent-chars. > > 10 is , aka C-j. When you type a character which is in > electric-indent-chars, that causes electric indentation of the current > line (not the new one you may create). I think that 10 causes > indentation of that line regardless of whether you type C-j or RET. > > > Even stranger, turning off electric-indent-mode results in the behavior > > I want, ie C-j inserts a newline then inserts. > > This is indeed strange, but is deliberate. The two behaviours > (electric-indent-mode and the transpositions of the key actions) were > linked together "for simplicity". If you want to have > electric-indent-mode enabled at the same time as having C-j and RET > behave traditionally, you're going to have to swap the key bindings or > start hacking the Emacs lisp code. > > This situation is a big part of why I personally haven't upgraded to > Emacs 24.4. > > > In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) > > of 2014-12-02 on raman-glaptop > > Repository revision: cb2257edc4a4b74ce9b566edc2d15a54e1ce2f22 > > System Description: Ubuntu 14.04 LTS > > -- > Alan Mackenzie (Nuremberg, Germany).