From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode) Date: Sun, 28 Mar 2010 16:46:45 -0400 Message-ID: <87aatsuqbu.fsf@stupidchicken.com> References: <201002170031.46472.pogonyshev@gmx.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269809776 9590 80.91.229.12 (28 Mar 2010 20:56:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Mar 2010 20:56:16 +0000 (UTC) Cc: 5586@debbugs.gnu.org, Paul Pogonyshev To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 28 22:56:02 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NvzWY-0005ve-0e for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Mar 2010 22:55:58 +0200 Original-Received: from localhost ([127.0.0.1]:46436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvzWX-0003vF-Ba for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Mar 2010 16:55:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvzWB-0003hn-8n for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2010 16:55:35 -0400 Original-Received: from [140.186.70.92] (port=44231 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvzW9-0003gY-Va for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2010 16:55:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvzW8-0000lx-HJ for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2010 16:55:33 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43190) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvzW8-0000lo-FN for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2010 16:55:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NvzNu-00084u-7z; Sun, 28 Mar 2010 16:47:02 -0400 X-Loop: bug-gnu-emacs@gnu.org In-Reply-To: <201002170031.46472.pogonyshev@gmx.net> Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Mar 2010 20:47:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: followup 5586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5586-submit@debbugs.gnu.org id=B5586.126980921231045 (code B ref 5586); Sun, 28 Mar 2010 20:47:02 +0000 Original-Received: (at 5586) by debbugs.gnu.org; 28 Mar 2010 20:46:52 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvzNk-00084g-KW for submit@debbugs.gnu.org; Sun, 28 Mar 2010 16:46:52 -0400 Original-Received: from pantheon-po35.its.yale.edu ([130.132.50.83]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvzNh-00084a-SK for 5586@debbugs.gnu.org; Sun, 28 Mar 2010 16:46:50 -0400 Original-Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po35.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o2SKkjuG024619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 28 Mar 2010 16:46:45 -0400 Original-Received: by furry (Postfix, from userid 1000) id 5B934C05D; Sun, 28 Mar 2010 16:46:45 -0400 (EDT) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 28 Mar 2010 16:47:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35786 Archived-At: > espresso-mode actually had electric indentation when I submitted it > for inclusion in Emacs. Can we restore that functionality? You're right, it was a mistake to take that out, since CC mode also has electric punctuation. I am still not happy about the way it's implemented in either mode---I think Emacs needs some kind of centralized mechanism for this---but that is a longer-term project. In the meantime, I've restored the deleted code in the branch. One difference, however, is that espresso-mode did electric punctuation for `+-.'. I didn't restore this yet, since CC mode does not do electric punctuation for these characters. Is there any reason we need to do this specially for Javascript?