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: Thu, 3 Oct 2013 11:54:10 +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> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1380802177 15105 80.91.229.3 (3 Oct 2013 12:09:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Oct 2013 12:09:37 +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 Thu Oct 03 14:09:39 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 1VRhit-0006Ki-Mf for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2013 14:09:39 +0200 Original-Received: from localhost ([::1]:42906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRhit-0000T7-4t for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2013 08:09:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRhUq-0003ea-Tp for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 07:55:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRhUl-0006QK-1X for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 07:55:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRhUk-0006Pn-MU for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 07:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VRhUj-0002wo-Rj for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 07:55:02 -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: Thu, 03 Oct 2013 11:55: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.138080127811299 (code B ref -1); Thu, 03 Oct 2013 11:55:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Oct 2013 11:54:38 +0000 Original-Received: from localhost ([127.0.0.1]:51500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRhUL-0002wA-3m for submit@debbugs.gnu.org; Thu, 03 Oct 2013 07:54:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58019) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRhUH-0002vz-8s for submit@debbugs.gnu.org; Thu, 03 Oct 2013 07:54:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRhUB-0006Ix-7y for submit@debbugs.gnu.org; Thu, 03 Oct 2013 07:54:32 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRhUB-0006It-4v for submit@debbugs.gnu.org; Thu, 03 Oct 2013 07:54:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRhU5-0003Wg-9Q for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 07:54:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRhTz-0006Fg-EQ for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 07:54:21 -0400 Original-Received: from four.schnuerpel.eu ([2a01:4f8:120:9382::145]:54630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRhTz-0006FJ-54 for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 07:54:15 -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 54E857CE for ; Thu, 3 Oct 2013 13:54:12 +0200 (CEST) Original-Received: (qmail 63750 invoked by uid 8); 3 Oct 2013 11:54:10 -0000 Original-Path: not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 50 Original-NNTP-Posting-Host: news.muc.de Original-X-Trace: colin.muc.de 1380801250 63216 193.149.48.2 (3 Oct 2013 11:54:10 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: Thu, 3 Oct 2013 11:54:10 +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: Thu, 03 Oct 2013 08:09:37 -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:78886 Archived-At: Hi, Andreas. Andreas R?hler wrote: > Am 03.10.2013 06:10, schrieb Stefan Monnier: >>>> That's because *you* like electric-indent-mode. Not because C is special. >>> Electric indentation is more useful in a language like C than it is in >>> something like Python --- C has a richer set of brace characters. >> Right: Python is indeed special because fully automatic indentation is >> not really possible. But C is not special in this respect. >>> cc-mode's sophisticated syntactic indentation is an Emacs "killer feature". >> The "sophisticated syntactic indentation" is also a killer feature for >> Octave users, SML users, Lisp users, Javascript users, ... >>> Anyway, we should be showcasing it by default, using electric >>> indentation, instead of hiding it behind configuration because users >>> might want to lobotomize their indentation by rebinding . >> That's arguing for changing the global default of electric-indent-mode. >> Whereas this bug report is about changing cc-mode to follow the >> global preference, whichever way it's set. >> Stefan > Experience from python-mode says: better keep electric-stuff and common indent apart. That's the way it is in python-mode. In CC Mode, automatic indentation doesn't work without electricity. A single global default for electric-indent-mode is thus inadequate. > Being aware new users might be attracted by these shiny and useful features, for Emacs beginners > a lot of surprises may result. > IMHO that's part of the "steep learning curve", Emacs is often blamed of - too much electric stuff for beginners. > Rather tell at README and Info what to activate once it works. I say, let the defaults reflect a properly functioning Emacs. -- Alan Mackenzie (Nuremberg, Germany).