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#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode) Date: Sun, 28 Mar 2010 16:59:14 -0400 Message-ID: <4BAFC322.7080104@gmail.com> References: <87aatsuqbu.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269811595 15752 80.91.229.12 (28 Mar 2010 21:26:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Mar 2010 21:26:35 +0000 (UTC) Cc: 5586@debbugs.gnu.org, Paul Pogonyshev To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 28 23:26:27 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 1Nw001-0004SJ-5B for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Mar 2010 23:26:25 +0200 Original-Received: from localhost ([127.0.0.1]:40270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nw000-0002Bc-Jc for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Mar 2010 17:26:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvzzD-0001Nz-67 for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2010 17:25:35 -0400 Original-Received: from [140.186.70.92] (port=34608 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvzzB-0001MG-Ky for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2010 17:25:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvzzA-00031r-50 for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2010 17:25:33 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37532) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvzzA-00031n-1w for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2010 17:25:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NvzaV-0008AM-LB; Sun, 28 Mar 2010 17:00:03 -0400 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Daniel Colascione 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 21:00:03 +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.126980995831364 (code B ref 5586); Sun, 28 Mar 2010 21:00:03 +0000 Original-Received: (at 5586) by debbugs.gnu.org; 28 Mar 2010 20:59:18 +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 1NvzZl-00089p-O9 for submit@debbugs.gnu.org; Sun, 28 Mar 2010 16:59:18 -0400 Original-Received: from qw-out-2122.google.com ([74.125.92.25]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvzZj-00089E-T5 for 5586@debbugs.gnu.org; Sun, 28 Mar 2010 16:59:16 -0400 Original-Received: by qw-out-2122.google.com with SMTP id 8so2889838qwh.33 for <5586@debbugs.gnu.org>; Sun, 28 Mar 2010 13:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=sjUtMb7kTNGiPUwIr4fYlqUO3z+0QklqrgBZUYDucog=; b=Wg0e0P/i/nSm0Tp7GxqLeZq0b9HJYfhFTprGqjxYOpHmWccqD7t6DdIFF7iXLV1M54 ePFXnINRp138OVwJpya8mZSs0X1kJbgpo2bce1mV4UuzYAvhYQbwJZQvIbcL5tpA7Rtr 5WeE8ElrOLtFR0/1U8I4/LgiOHdKskWIin0Ic= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=MJJk29rTTQdQuOFryY+wJdDMB0fYObccfsjfF6ySAJbwzy72ywqcuggqvynCRcnWC7 U3sQsf9gLS8084XujCGPVwRppEhZe3sJBM9aSVoGbOdINOeVTkVdYL5AiFeFV73hMwm3 tBgaTQbsN7MCukq3vETiGyPGYzFHy3O4OXE0I= Original-Received: by 10.229.230.84 with SMTP id jl20mr1830707qcb.88.1269809956824; Sun, 28 Mar 2010 13:59:16 -0700 (PDT) Original-Received: from edith.local (cpe-67-247-228-249.buffalo.res.rr.com [67.247.228.249]) by mx.google.com with ESMTPS id 22sm2107401qyk.10.2010.03.28.13.59.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Mar 2010 13:59:15 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 In-Reply-To: <87aatsuqbu.fsf@stupidchicken.com> X-Enigmail-Version: 1.0.1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 28 Mar 2010 17:00:03 -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:35787 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 3/28/10 4:46 PM, Chong Yidong wrote: > 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. The chief difficulty I see is that in some modes, indentation isn't idempotent: if you ran indent-line-function from some generic electric code, it might change the indentation of the current line in unwanted ways. (Imagine python-mode, where indent-line-function cycles through feasible indentation levels for a given line.) At best, modes would have to opt-in, and if each mode needs some glue anyway, why not just let each mode handle electric characters itself? > In the meantime, I've restored the deleted > code in the branch. Thanks. > 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? There's no particular reason, no. The cc-mode set of electric characters is probably fine. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAkuvwyIACgkQ17c2LVA10VtH3gCeOCAeJGGzWDM1NATJ5HzOakbJ Ix8Ani2twtZPGkUe0G8uQs5v+w0XQmjx =1shD -----END PGP SIGNATURE-----