From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#15478: cc-mode does not obey electric-indent-mode Date: Wed, 02 Oct 2013 23:31:26 -0700 Message-ID: <524D0F3E.5030308@dancol.org> References: <20130928201147.GC11317@acm.acm> <20130929091017.GA3161@acm.acm> <20131002200737.GA3895@acm.acm> <524CDA92.1030107@dancol.org> <524D06F9.3020804@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Vj8WABfx2MLvD9W7V3WnAqLHKsuRgFVqR" X-Trace: ger.gmane.org 1380781999 18179 80.91.229.3 (3 Oct 2013 06:33:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Oct 2013 06:33:19 +0000 (UTC) Cc: 15478@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 03 08:33:21 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 1VRcTQ-0000fl-JI for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2013 08:33:20 +0200 Original-Received: from localhost ([::1]:40074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRcTQ-0006hw-81 for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2013 02:33:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRcTG-0006hA-BY for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 02:33:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRcT9-00012N-2s for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 02:33:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRcT8-00012J-W6 for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 02:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VRcT8-0002kv-AT for bug-gnu-emacs@gnu.org; Thu, 03 Oct 2013 02:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Oct 2013 06:33:02 +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 15478-submit@debbugs.gnu.org id=B15478.138078195710559 (code B ref 15478); Thu, 03 Oct 2013 06:33:02 +0000 Original-Received: (at 15478) by debbugs.gnu.org; 3 Oct 2013 06:32:37 +0000 Original-Received: from localhost ([127.0.0.1]:51032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRcSi-0002kD-2J for submit@debbugs.gnu.org; Thu, 03 Oct 2013 02:32:37 -0400 Original-Received: from dancol.org ([96.126.100.184]:48629) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRcSe-0002k3-Cp for 15478@debbugs.gnu.org; Thu, 03 Oct 2013 02:32:33 -0400 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[192.168.1.52]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1VRcSc-00062O-91; Wed, 02 Oct 2013 23:32:30 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <524D06F9.3020804@easy-emacs.de> X-Enigmail-Version: 1.5.2 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-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:78882 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Vj8WABfx2MLvD9W7V3WnAqLHKsuRgFVqR Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable On 10/2/13 10:56 PM, Andreas R=F6hler wrote: > Experience from python-mode says: better keep electric-stuff and common= > indent apart. What do you mean? I agree that the features should be separated in the code and configured separately. > Being aware new users might be attracted by these shiny and useful > features, for Emacs beginners > a lot of surprises may result. >=20 > IMHO that's part of the "steep learning curve", Emacs is often blamed o= f > - too much electric stuff for beginners. Python is special because the correct indentation, in the general case, cannot be computed from buffer contents. As a result, electric indentation will be frequently wrong and will annoy users. Electric indentation in Python should default to off. But most languages aren't like that. Most of the time, electric indentation is a pure convenience, and should be on by default. I don't agree that users would find it confusing in modes where indentation is deterministic. > Rather tell at README and Info what to activate once it works. I couldn't disagree more strongly. Users don't read READMEs --- they download a program, try it out, and in 15 minutes or so, decide whether they want to invest time into it. Emacs needs to be better than other editors out of the box. We can tell users how to turn _off_ electric indentation in the documentation --- and we should probably add a menu option for it. --Vj8WABfx2MLvD9W7V3WnAqLHKsuRgFVqR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) iQIcBAEBAgAGBQJSTQ8/AAoJEMAaIROpHW7IrC0QAMXjYLHMh3j54o7kEQq5vpHm OeI1ArcBwrZ+RPhTy1DqtAd/2QF0W4nEvxeHBBIiRTFPmpY5wfZ/09LUW2LFYN4t NcxwNh6JkJeUZKUj6NgtX4705P56mvBx+Lh+s/avpdU8iBSzP/IH9z1MmyX51Klm 0GqOuZ6QOHfINsK2jpnqBF5wJOgxL3m9IEvywM9hWn+2ymwa4ytZVwXJLcqFJtG8 8q3nlUWbzsUenyqDc6dSDTwIxog9gSRD7QKNZf/JtpXYPIi1j0BKrhKVkyKcA4Jn u/yKc2SlJCY1QZ6lWqgUPCJlHsgaV77w5tSz0nNOHNkf8hcUJkrRgWEADiHIVnF4 yY72Fep4qBddYdDcCZqWKNwPkiyFsAMvfAXnZ4Q0TGjt3+1cuj0Uavrv3gCLQroy o29UqoMs2EgP0WidgdY2J81tBj1bcjn7Wk6yJ80byrrsP0/rBE8UPul3E4xyrRp3 leqNYH4/pebWF+QcwpTxucRvoSIwczbTHNO5tdqqh+QnEUzG2uX/FtnvAP1a8Z2D Ew15534npQSxMTqFst7xFZDZGpxGWE8o5RCUgbFqExbZvA8GqONP2iELokakGGNF 0bU+YIat/wtIe5pk3tSalfnx0MGLGpPRqxM0BwgrH4qVSjXtvzcbp0Z+q4UHYMbT QsPqnB6Ve/m8uWSt7FQN =O8N5 -----END PGP SIGNATURE----- --Vj8WABfx2MLvD9W7V3WnAqLHKsuRgFVqR--