From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jfbu Newsgroups: gmane.emacs.help Subject: Re: Why flip RET and C-j with electric-indent-mode? Date: Sat, 29 Nov 2014 10:34:20 +0100 Organization: Guest of ProXad - France Message-ID: <5479931c$0$2048$426a74cc@news.free.fr> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1417269499 6689 80.91.229.3 (29 Nov 2014 13:58:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2014 13:58:19 +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 14:58:12 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 1XuiXL-0001Vv-OM for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Nov 2014 14:58:11 +0100 Original-Received: from localhost ([::1]:47693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuiXL-0003hO-CX for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Nov 2014 08:58:11 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp1-2.free.fr!not-for-mail User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 20 Original-NNTP-Posting-Date: 29 Nov 2014 10:34:20 CET Original-NNTP-Posting-Host: 88.160.125.12 Original-X-Trace: 1417253660 news-3.free.fr 2048 88.160.125.12:65245 Original-X-Complaints-To: abuse@proxad.net Original-Xref: usenet.stanford.edu gnu.emacs.help:209009 X-Mailman-Approved-At: Sat, 29 Nov 2014 08:57:59 -0500 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:101292 Archived-At: 28/11/2014 23:56, Bob Proulx wrote : > So why did emacs flip RET and C-j with electric-indent-mode? It has > always been that typing RET in fundamental mode would insert a > newline. C-j would insert a newline and indent. This is now broken > in emacs24.4 and later. Now those two actions are reversed! > Aaarrrgghh! Thanks so much Bob! ever since I upgraded my Emacs (a build for Mac OS X) I was terribly annoyed by strange indentation behavior whenever typing RET for example when editing commented parts in my custom file, and I settled on doing C-qC-j -- didn't know about C-j by the way. All this mystery vanishes after turning off electric-indent-mode! I am not competent to say if the change was well grounded or not, but it is very nice to know what I observed in disarray is explained by electric-mode setting. thanks again, Jean-Francois