From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Why flip RET and C-j with electric-indent-mode? Date: Sat, 29 Nov 2014 09:50:51 +0200 Message-ID: <83tx1ila1w.fsf@gnu.org> References: <20141128153825244895059@bob.proulx.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1417247488 19945 80.91.229.3 (29 Nov 2014 07:51:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2014 07:51:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 29 08:51:16 2014 Return-path: Envelope-to: geh-help-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 1XucoE-0002Dn-AN for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Nov 2014 08:51:14 +0100 Original-Received: from localhost ([::1]:46979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XucoD-00076B-Rp for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Nov 2014 02:51:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xucnw-00075w-M8 for help-gnu-emacs@gnu.org; Sat, 29 Nov 2014 02:51:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xucnq-0000aC-Ul for help-gnu-emacs@gnu.org; Sat, 29 Nov 2014 02:50:56 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:55400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xucnq-0000a0-Mi for help-gnu-emacs@gnu.org; Sat, 29 Nov 2014 02:50:50 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NFS00H00HZ95100@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sat, 29 Nov 2014 09:50:49 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NFS00HNIJ4O6810@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Sat, 29 Nov 2014 09:50:49 +0200 (IST) In-reply-to: <20141128153825244895059@bob.proulx.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101287 Archived-At: > Date: Fri, 28 Nov 2014 15:56:30 -0700 > From: Bob Proulx > > So why did emacs flip RET and C-j with electric-indent-mode? Because users nowadays expect that. > Here is the news entry. > > * Editing Changes in Emacs 24.4 > > ** Indentation > > *** `electric-indent-mode' is now enabled by default. > Typing RET reindents the current line and indents the new line. > `C-j' inserts a newline but does not indent. In some programming modes, > additional characters are electric (eg `{'). > > *** New buffer-local `electric-indent-local-mode'. > > The change is to set electric-indent-mode all of the time. Even in > fundamental-mode? That is a terrible thing to do to users. Rug. > Standing on rug? Yank rug! "C-h f newline RET" will have a suggestion that you will like, I think.