From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#15478: cc-mode does not obey electric-indent-mode Date: Sat, 5 Oct 2013 17:06:46 +0000 (UTC) Organization: muc.de e.V. Message-ID: References: <20130928201147.GC11317@acm.acm> <20130929091017.GA3161@acm.acm> <20131002200737.GA3895@acm.acm> <524CDA92.1030107@dancol.org> <20131003094543.GA3211@acm.acm> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1380993810 18698 80.91.229.3 (5 Oct 2013 17:23:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Oct 2013 17:23:30 +0000 (UTC) To: gnu-emacs-bug@moderators.isc.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 05 19:23:33 2013 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 1VSVZj-0003nX-Fz for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Oct 2013 19:23:31 +0200 Original-Received: from localhost ([::1]:52518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSVZj-0005ux-0t for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Oct 2013 13:23:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSVKt-0003Ym-FS for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2013 13:08:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSVKk-0002bO-3Y for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2013 13:08:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSVKk-0002bK-0W for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2013 13:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VSVKj-0008Nb-IT for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2013 13:08:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Oct 2013 17:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15478 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.138099283132151 (code B ref -1); Sat, 05 Oct 2013 17:08:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Oct 2013 17:07:11 +0000 Original-Received: from localhost ([127.0.0.1]:56249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VSVJu-0008MU-1i for submit@debbugs.gnu.org; Sat, 05 Oct 2013 13:07:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47113) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VSVJs-0008MM-AT for submit@debbugs.gnu.org; Sat, 05 Oct 2013 13:07:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSVJm-0002O6-Md for submit@debbugs.gnu.org; Sat, 05 Oct 2013 13:07:07 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSVJm-0002O2-Jp for submit@debbugs.gnu.org; Sat, 05 Oct 2013 13:07:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSVJh-00039r-7V for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2013 13:07:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSVJb-0002Mm-Ol for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2013 13:06:57 -0400 Original-Received: from four.schnuerpel.eu ([2a01:4f8:120:9382::145]:41066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSVJb-0002MC-FN for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2013 13:06:51 -0400 Original-Received: from mail.muc.de (colin.muc.de [193.149.48.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by moderators.schnuerpel.eu (Postfix) with ESMTPS id 697CE7D7 for ; Sat, 5 Oct 2013 19:06:48 +0200 (CEST) Original-Received: (qmail 14071 invoked by uid 8); 5 Oct 2013 17:06:46 -0000 Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 35 Original-NNTP-Posting-Host: news.muc.de Original-X-Trace: colin.muc.de 1380992806 14069 193.149.48.2 (5 Oct 2013 17:06:46 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: Sat, 5 Oct 2013 17:06:46 +0000 (UTC) User-Agent: tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/8.4-RELEASE (amd64)) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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-Mailman-Approved-At: Sat, 05 Oct 2013 13:23:27 -0400 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:78941 Archived-At: Stefan Monnier wrote: >> The global default should be On for C and Off for Python. > There's a problem in your sentence: global means "for all modes", > whereas you only talk about C and Python. :-). Then please consider that last sentence of mine modified by removing "global" from it. > My opinion is: default for python-mode should be off (I think we all agree > here) and default for cc-mode should be the same as the global default. Yes, we agree about python-mode. The default for CC Mode must be on, otherwise automatic indentation is broken. > What the global default should be is another discussion. In the sense we now agree upon, there shouldn't be a global default, just as there isn't a global default for `font-lock-keywords'. >>> Whereas this bug report is about changing cc-mode to follow the >>> global preference, whichever way it's set. >> If it's been set. > No: even if it's not been set by the user. If it's not been explicitly disabled by the user, electric indentation must be on in CC Mode. Otherwise automatic indentation doesn't work. > Stefan -- Alan Mackenzie (Nuremberg, Germany).