From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Why flip RET and C-j with electric-indent-mode? Date: Mon, 6 Jun 2016 16:08:02 -0600 Message-ID: <20160606160438520479163@bob.proulx.com> References: <20141128153825244895059@bob.proulx.com> <83tx1ila1w.fsf@gnu.org> <604600ef-4fdb-46ad-b7c8-30625ac303d1@googlegroups.com> <20160603173908736387648@bob.proulx.com> <8f661893-8947-1c79-b12e-8b8e81b7dd2b@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1465250945 7855 80.91.229.3 (6 Jun 2016 22:09:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2016 22:09:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jim Fiocca Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 07 00:08:58 2016 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 1bA2hd-0006qd-Ov for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Jun 2016 00:08:57 +0200 Original-Received: from localhost ([::1]:45787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bA2hc-0007UY-T6 for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Jun 2016 18:08:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bA2gt-0007S1-PC for help-gnu-emacs@gnu.org; Mon, 06 Jun 2016 18:08:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bA2gl-0001hG-W0 for help-gnu-emacs@gnu.org; Mon, 06 Jun 2016 18:08:11 -0400 Original-Received: from havoc.proulx.com ([96.88.95.61]:47463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bA2gl-0001h6-QF for help-gnu-emacs@gnu.org; Mon, 06 Jun 2016 18:08:03 -0400 Original-Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id 4193AC31; Mon, 6 Jun 2016 16:08:03 -0600 (MDT) Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id E98AB21237; Mon, 6 Jun 2016 16:08:02 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id CC8492DC4D; Mon, 6 Jun 2016 16:08:02 -0600 (MDT) Mail-Followup-To: Jim Fiocca , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <8f661893-8947-1c79-b12e-8b8e81b7dd2b@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 96.88.95.61 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:110342 Archived-At: Jim Fiocca wrote: > I am using C and C++ programming modes. Previously whenever I typed an open > curly brace, it would automatically indent to the correct column. Now, with > electric-indent-mode nil, it just stays at column 1. This has nothing to do > with RET or ctrl-J. > > Funny thing is, if I turn electric-indent-mode on and then off while in a > C-mode buffer, it works fine. I just can't automate it. Something wrong > with the timing of turning it off globally or turning it off in my > c-mode-hook in .emacs. I am hoping you will file a bug report on the problem. Here is the bug reporting documentation. http://www.gnu.org/software/emacs/manual/html_node/emacs/Bugs.html#Bugs Bob