From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r116461: Connect electric-indent-mode up with CC Mode. Bug #15478. Date: Sun, 9 Mar 2014 12:37:11 +0000 Message-ID: <20140309123711.GA2615@acm.acm> References: <20140222182704.GA2639@acm.acm> <20140228195051.GA3446@acm.acm> <20140302115118.GA3768@acm.acm> <20140308225820.GB2726@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1394368856 5632 80.91.229.3 (9 Mar 2014 12:40:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Mar 2014 12:40:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 09 13:41:04 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 1WMd2O-0002Sa-Kj for ged-emacs-devel@m.gmane.org; Sun, 09 Mar 2014 13:41:04 +0100 Original-Received: from localhost ([::1]:43916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMd2O-0003Kx-9Z for ged-emacs-devel@m.gmane.org; Sun, 09 Mar 2014 08:41:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMd2E-0003Jh-7x for emacs-devel@gnu.org; Sun, 09 Mar 2014 08:41:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WMd26-0006hw-T7 for emacs-devel@gnu.org; Sun, 09 Mar 2014 08:40:54 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:10552 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WMd26-0006ho-JB for emacs-devel@gnu.org; Sun, 09 Mar 2014 08:40:46 -0400 Original-Received: (qmail 87855 invoked by uid 3782); 9 Mar 2014 12:40:44 -0000 Original-Received: from acm.muc.de (pD951AB7C.dip0.t-ipconnect.de [217.81.171.124]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 09 Mar 2014 13:40:43 +0100 Original-Received: (qmail 3664 invoked by uid 1000); 9 Mar 2014 12:37:11 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 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:170236 Archived-At: Hello, Stefan. Thanks for ignoring practically all of my last email. That really made my day. On Sat, Mar 08, 2014 at 08:57:57PM -0500, Stefan Monnier wrote: > > There lacks a clean way of determining if a minor-mode function has been > > called. There is a clear need for such a facility. > I don't see what's clear about this supposed need. So it would seem. > > As we have discussed before, it is essential that c-electric-flag be > > enabled by default for CC Mode buffers. > And as you probably remember, I disagree. Yes, I remember well. Your disagreement consisted of noting that you personally like typing tab all the time, rather than having lines of code indent automatically. > What is essential for me is that C-mode have the same behavior as other > modes. I.e. obey electric-indent-mode. Major modes provide different behaviours, behaviours appropriate to the type of text being edited. That's why we have major modes. Electric indentation in CC Mode is not broken. You're determined, nevertheless, to fix it. The consequences for Emacs cannot be good. > Stefan -- Alan Mackenzie (Nuremberg, Germany).