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 19:46:42 -0700 Message-ID: <524CDA92.1030107@dancol.org> References: <20130928201147.GC11317@acm.acm> <20130929091017.GA3161@acm.acm> <20131002200737.GA3895@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0JKAjSB6XQHNfpHoMMa0WKce4Gv9NWC45" X-Trace: ger.gmane.org 1380768498 24488 80.91.229.3 (3 Oct 2013 02:48:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Oct 2013 02:48:18 +0000 (UTC) Cc: 15478@debbugs.gnu.org, Alan Mackenzie To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 03 04:48: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 1VRYxg-0002pp-IH for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Oct 2013 04:48:20 +0200 Original-Received: from localhost ([::1]:39581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRYxg-0006GX-8f for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Oct 2013 22:48:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRYxW-0006GQ-1Y for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2013 22:48:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRYxO-0007iv-JP for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2013 22:48:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRYxO-0007ir-Fc for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2013 22:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VRYxO-0005xL-31 for bug-gnu-emacs@gnu.org; Wed, 02 Oct 2013 22:48: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 02:48: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 15478-submit@debbugs.gnu.org id=B15478.138076847622884 (code B ref 15478); Thu, 03 Oct 2013 02:48:01 +0000 Original-Received: (at 15478) by debbugs.gnu.org; 3 Oct 2013 02:47:56 +0000 Original-Received: from localhost ([127.0.0.1]:50808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRYxH-0005x1-LG for submit@debbugs.gnu.org; Wed, 02 Oct 2013 22:47:56 -0400 Original-Received: from dancol.org ([96.126.100.184]:47992) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VRYxE-0005wr-HW for 15478@debbugs.gnu.org; Wed, 02 Oct 2013 22:47:53 -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 1VRYxB-0005hM-CH; Wed, 02 Oct 2013 19:47:49 -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: 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:78874 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0JKAjSB6XQHNfpHoMMa0WKce4Gv9NWC45 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10/2/13 6:50 PM, Stefan Monnier wrote: >> Without electricity, correct indentation would require continual press= ing >> of the key. >=20 > Yes. Just as is the case in all major modes. >=20 >> "|" indicates the position of point. Now type "{". With electricity,= >> the "{" is instantly indented to its correct position under the "if". >> Without electricity, the user needs to remember to type before C= -j >> on L4. This is an unacceptable default state, IMAO. >=20 > That's because *you* like electric-indent-mode. Not because C is speci= al. 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. cc-mode's sophisticated syntactic indentation is an Emacs "killer feature= ". 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 . --0JKAjSB6XQHNfpHoMMa0WKce4Gv9NWC45 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) iQIcBAEBAgAGBQJSTNqUAAoJEMAaIROpHW7IC4MQAJXuFOXOUFhMKL5WPufUpfug feeiIUxTYFoqceWVF6iHdD0aQLrz2utvEnlY1sewARujkwsKcGvpkKFCI2TlxzsD Lwn4ld/dRzUw9F+mfnZlpQN38q0l5cszQjlPjSHxdWWqdFn2EUAQ7Kx8SijS+9Tq I0P9ZE8Wy9LNrfIEpJ4+46n1327ahAtKuT4ec7PLZ+lJ2VeVo/mlJNi0brBBKuH9 9kss/wCyIWMgvJ5pJWdQ82vXJt3EaFLSLo44N8prpxo7p4y1qo9ks2nel4lFmdYQ 0PWUnwWAFBDN4qf5pQ9Vhnt+ZQgh1k3e8sxQ/9DeOe1CDLQQgm2HFPipqG2raQGJ 8HHccpS9lfcuUU1aOm7YxOuDXyEP6tqxL8eIlE+hjJG7fGWUSskWp1RHo2qwJala 7NhHLNdN4S4VsSzgcn/lKAC/8+GH9LvUOQu/Fxo0sNfo8oaS4lbfbQKqQlHfPe8z JSTgAbdBjFv+tUuRIEW8tYdanvU7UZ2RNVWrPXwGVFZwzKC3kZZYoK/75xWVdmzI joJK0VSElaHM/nc8ZwnxdmVWjGWi1oouqghoiuS4W8inHu4RUCDvGb+UgAw0Irgk UJdRBBVlnELWGnBFVjzcVqIArVTN+me+05NFQGsPtzbZ3NAwOfA0e6R4CtFC4DsH esQdyuVk4ZWDCbfZzntP =G9/D -----END PGP SIGNATURE----- --0JKAjSB6XQHNfpHoMMa0WKce4Gv9NWC45--