From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 16 17:33:58 2010 Received: (at submit) by debbugs.gnu.org; 16 Feb 2010 22:33:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhVzS-0001rG-0C for submit@debbugs.gnu.org; Tue, 16 Feb 2010 17:33:58 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhVym-0001qZ-6q for submit@debbugs.gnu.org; Tue, 16 Feb 2010 17:33:16 -0500 Received: from mx10.gnu.org ([199.232.76.166]:37746) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhVyi-0005fl-6t for submit@debbugs.gnu.org; Tue, 16 Feb 2010 17:33:12 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NhVyh-0004an-DT for submit@debbugs.gnu.org; Tue, 16 Feb 2010 17:33:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: **** X-Spam-Status: No, score=4.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_XBL, UNPARSEABLE_RELAY autolearn=no version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:37966) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NhVyh-0004aj-7V for submit@debbugs.gnu.org; Tue, 16 Feb 2010 17:33:11 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhVyg-0002nv-Q5 for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2010 17:33:10 -0500 Received: from [140.186.70.92] (port=36342 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhVyg-0002nK-50 for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2010 17:33:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhVyd-0007wl-Tl for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2010 17:33:10 -0500 Received: from mail.gmx.net ([213.165.64.20]:59206) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NhVyd-0007wb-FZ for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2010 17:33:07 -0500 Received: (qmail invoked by alias); 16 Feb 2010 22:33:04 -0000 Received: from unknown (EHLO gonzo.localnet) [91.149.173.2] by mail.gmx.net (mp015) with SMTP; 16 Feb 2010 23:33:04 +0100 X-Authenticated: #16844820 X-Provags-ID: V01U2FsdGVkX18Tg7xQfz8Tp275iuSHHi1+dsXVCnI5aLecQmK3TA kb4e5gjD3FJX6I From: Paul Pogonyshev To: bug-gnu-emacs@gnu.org Subject: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode) Date: Wed, 17 Feb 2010 00:31:45 +0200 User-Agent: KMail/1.12.4 (Linux/2.6.29-2-686; KDE/4.3.4; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201002170031.46472.pogonyshev@gmx.net> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68000000000000005 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 16 Feb 2010 17:33:56 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) Package: emacs Severity: wishlist JavaScript is quite similar in syntax to C-like languages (Java, C++ etc.), so it's natural to use the same editing techniques for it. It would be nice if Emacs gave JS mode a more "familiar" feel. For me, the most wanted features are electric indentation and hungry backspace. I.e. when typing '{', '(' or a similar control character the current line would be automatically reindented. And backspace would delete all space characters to the left of the point, not just one. Paul From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 26 02:15:11 2010 Received: (at 5586) by debbugs.gnu.org; 26 Mar 2010 06:15:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nv2p4-00017W-R7 for submit@debbugs.gnu.org; Fri, 26 Mar 2010 02:15:11 -0400 Received: from qw-out-2122.google.com ([74.125.92.24]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nv1hM-0000hf-Ds for 5586@debbugs.gnu.org; Fri, 26 Mar 2010 01:03:09 -0400 Received: by qw-out-2122.google.com with SMTP id 8so2413315qwh.33 for <5586@debbugs.gnu.org>; Thu, 25 Mar 2010 22:03:04 -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:newsgroups:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=GEwA/fgZFoL+mtNO1j5QaWZX+mHgvo4wkneWw8QhdUM=; b=eFywdOpG5Xz7Ir8/2Mv4/k05x6d5DKlBD+DT47L7DsQ0prH/0XYiD/SqAg+iAUgsG/ x8x2CiF/L27onL0AqYpDPXvb6327y3f2OBlXUkII/8wcR6H+Jp2LEqkRiyuXYW4tQHit VoyFe/Q3Qzw3aNjcr+IJt0/uQg0nfChOKGXEw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:newsgroups:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=PBL0zZDD4DN+m7ApZwbaTab1CJwlVbzZzzrWnw1gKfm1IczRD++FIziyK733g5zf2t 0NrHa/e5KaH542m59tHp6jRuUQpHRI4kBiZj7NOLRI+4t9BbssH7/AbYmyqtbvKJAQMl bHdblNnqBONOgyJgXpW6onf6tAgstU/T2Ryeg= Received: by 10.229.214.74 with SMTP id gz10mr601365qcb.25.1269579784879; Thu, 25 Mar 2010 22:03:04 -0700 (PDT) Received: from edith.local (cpe-67-247-228-249.buffalo.res.rr.com [67.247.228.249]) by mx.google.com with ESMTPS id 20sm378895qyk.12.2010.03.25.22.03.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Mar 2010 22:03:04 -0700 (PDT) Message-ID: <4BAC4004.1090505@censorshipresearch.org> Date: Fri, 26 Mar 2010 01:03:00 -0400 From: Daniel Colascione 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 MIME-Version: 1.0 Newsgroups: gmane.emacs.bugs To: Paul Pogonyshev Subject: Re: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode) References: <201002170031.46472.pogonyshev@gmx.net> In-Reply-To: <201002170031.46472.pogonyshev@gmx.net> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 5586 X-Mailman-Approved-At: Fri, 26 Mar 2010 02:15:09 -0400 Cc: 5586@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.3 (-) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2/16/10 5:31 PM, Paul Pogonyshev wrote: > Package: emacs > Severity: wishlist > > JavaScript is quite similar in syntax to C-like languages (Java, C++ > etc.), so it's natural to use the same editing techniques for it. It > would be nice if Emacs gave JS mode a more "familiar" feel. > > For me, the most wanted features are electric indentation and hungry > backspace. I.e. when typing '{', '(' or a similar control character > the current line would be automatically reindented. And backspace > would delete all space characters to the left of the point, not just > one. > > Paul espresso-mode actually had electric indentation when I submitted it for inclusion in Emacs. Can we restore that functionality? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAkusQAQACgkQ17c2LVA10VsA1ACeMwZPtnZnw3aEm3B6/sb+8A5T hhAAnjM99lr4a5arx69ehVxBM/sv9n6P =trl7 -----END PGP SIGNATURE----- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 28 16:46:52 2010 Received: (at 5586) by debbugs.gnu.org; 28 Mar 2010 20:46:52 +0000 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 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 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 Received: by furry (Postfix, from userid 1000) id 5B934C05D; Sun, 28 Mar 2010 16:46:45 -0400 (EDT) From: Chong Yidong To: Daniel Colascione Subject: Re: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 5586 Cc: 5586@debbugs.gnu.org, Paul Pogonyshev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) > 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? From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 28 16:58:59 2010 Received: (at 5586) by debbugs.gnu.org; 28 Mar 2010 20:58:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvzZT-00089J-7E for submit@debbugs.gnu.org; Sun, 28 Mar 2010 16:58:59 -0400 Received: from qw-out-2122.google.com ([74.125.92.25]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvzZR-00089E-CW for 5586@debbugs.gnu.org; Sun, 28 Mar 2010 16:58:57 -0400 Received: by qw-out-2122.google.com with SMTP id 8so2889838qwh.33 for <5586@debbugs.gnu.org>; Sun, 28 Mar 2010 13:58:53 -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=gYTwW6UWnvlKZjOjO6i7Fr6exoqswZKyhVYfTre09oA=; b=WBYqfjOmTfkdmz8ZI1CSWTJBeKm2TKyUzdXvaJF+26ZvkOF1aTLoUXaHSDkdjSr5If x38NVNRabHViWYPm7eXdIM3c77mnNWa/tGCvGQR8ZGbx3iyeQF9Lli9BPgUtXOBH1YA8 AKVAVdkRPjL61AmxyHTP6Mr9qLVttkp3cVZyQ= 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=eIuKnCgVlOwrLDNyShl0SSJcAZxW6VkwIXS4BiHgKdg2AFuEwKRL8R3etMkOdO9rXz Y59S3CpVZZIJgGiArCZrc0/pCs2oZ7dpewJRLVla4ii1Oxmk1472df0gzrQh28+z9bSl 0rv+hJ6aMjFY3+dwbEPcQrUDhHsMRl/AKogtQ= Received: by 10.224.96.226 with SMTP id i34mr1311826qan.1.1269809932933; Sun, 28 Mar 2010 13:58:52 -0700 (PDT) Received: from edith.local (cpe-67-247-228-249.buffalo.res.rr.com [67.247.228.249]) by mx.google.com with ESMTPS id 22sm2114503qyk.2.2010.03.28.13.58.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 28 Mar 2010 13:58:51 -0700 (PDT) Message-ID: <4BAFC309.70701@gmail.com> Date: Sun, 28 Mar 2010 16:58:49 -0400 From: Daniel Colascione 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 MIME-Version: 1.0 To: Chong Yidong Subject: Re: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode) References: <87aatsuqbu.fsf@stupidchicken.com> In-Reply-To: <87aatsuqbu.fsf@stupidchicken.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 5586 Cc: 5586@debbugs.gnu.org, Paul Pogonyshev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.7 (-) -----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) iEYEARECAAYFAkuvwwkACgkQ17c2LVA10VtXIACgmgSYoR4WMmxkOF4l7QoEATYQ b8oAoNwNRjoQvMSkmd6gWIyNy/8IZBnW =8XTU -----END PGP SIGNATURE----- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 28 16:59:18 2010 Received: (at 5586) by debbugs.gnu.org; 28 Mar 2010 20:59:18 +0000 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 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 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= Received: by 10.229.230.84 with SMTP id jl20mr1830707qcb.88.1269809956824; Sun, 28 Mar 2010 13:59:16 -0700 (PDT) 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) Message-ID: <4BAFC322.7080104@gmail.com> Date: Sun, 28 Mar 2010 16:59:14 -0400 From: Daniel Colascione 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 MIME-Version: 1.0 To: Chong Yidong Subject: Re: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode) References: <87aatsuqbu.fsf@stupidchicken.com> In-Reply-To: <87aatsuqbu.fsf@stupidchicken.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 5586 Cc: 5586@debbugs.gnu.org, Paul Pogonyshev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) -----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----- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 28 18:37:50 2010 Received: (at 5586) by debbugs.gnu.org; 28 Mar 2010 22:37:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nw178-0000Jh-B7 for submit@debbugs.gnu.org; Sun, 28 Mar 2010 18:37:50 -0400 Received: from fg-out-1718.google.com ([72.14.220.153]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nw176-0000Jc-Q4 for 5586@debbugs.gnu.org; Sun, 28 Mar 2010 18:37:49 -0400 Received: by fg-out-1718.google.com with SMTP id d23so2354214fga.15 for <5586@debbugs.gnu.org>; Sun, 28 Mar 2010 15:37:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:received:message-id:subject:to:cc:content-type; bh=wQ2L+ItjFBw3EiSZ7sfUXMmvoLiPF9cK9roSd/mo57s=; b=Ff+BWx+/s3gJqU0aQyf+iyp+FWm1xO8N9PrPC2s6F+IfWbcFq6yhhkinLc0cVBa7OV aRL37V2c3NR1xzqCHjphA6cgqxgLsXlKvArTL7TDa/K5bx32qgBWX5paMxjZIMKOr7lv ZdSAoZ2/M2oFf4mm8Htk+6yXII7/FtvbuJCnY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=jmHF2H8QChmRN9JvigEHkhKJ5YNJw0fNrcxjIy4mNlP4VX/3GTmUFwSzoRZky1AYL9 WQZ+k7u6IckehoDwknePCo9yR9M0PRNNAT9wKL9Ab9+NVML2TAIZZUXsjCzOxHpV9mLY rC2ylJVK/8ZY2W3UdUC0fSyxlyfupj8eWFpVY= MIME-Version: 1.0 Received: by 10.239.169.18 with HTTP; Sun, 28 Mar 2010 15:37:24 -0700 (PDT) In-Reply-To: <4BAFC309.70701@gmail.com> References: <87aatsuqbu.fsf@stupidchicken.com> <4BAFC309.70701@gmail.com> From: Lennart Borgman Date: Mon, 29 Mar 2010 00:37:24 +0200 Received: by 10.239.132.204 with SMTP id 12mr364232hbs.128.1269815864227; Sun, 28 Mar 2010 15:37:44 -0700 (PDT) Message-ID: Subject: Re: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode) To: Daniel Colascione Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 5586 Cc: Chong Yidong , 5586@debbugs.gnu.org, Paul Pogonyshev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) On Sun, Mar 28, 2010 at 10:58 PM, Daniel Colascione wrote: > > 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? Because without something like indent-line-function you can not handle it in a more generic way. The absense of this in some major modes has for example costed me a lot of burden in mumamo (the framework in nXhtml for mult major modes in a buffer). Actually indent-line-function is not generic enough. One more level is needed: one that computes the desirable indentation. From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 28 21:49:46 2010 Received: (at 5586) by debbugs.gnu.org; 29 Mar 2010 01:49:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nw46s-0001Ui-5v for submit@debbugs.gnu.org; Sun, 28 Mar 2010 21:49:46 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nw46r-0001Ua-2y for 5586@debbugs.gnu.org; Sun, 28 Mar 2010 21:49:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAGOkr0tMCqeD/2dsb2JhbACbKXK+MYUBBIse X-IronPort-AV: E=Sophos;i="4.51,325,1267419600"; d="scan'208";a="59567392" Received: from 76-10-167-131.dsl.teksavvy.com (HELO ceviche.home) ([76.10.167.131]) by ironport2-out.pppoe.ca with ESMTP; 28 Mar 2010 21:49:40 -0400 Received: by ceviche.home (Postfix, from userid 20848) id A5927660BF; Sun, 28 Mar 2010 21:49:40 -0400 (EDT) From: Stefan Monnier To: Daniel Colascione Subject: Re: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode) Message-ID: References: <87aatsuqbu.fsf@stupidchicken.com> <4BAFC309.70701@gmail.com> Date: Sun, 28 Mar 2010 21:49:40 -0400 In-Reply-To: <4BAFC309.70701@gmail.com> (Daniel Colascione's message of "Sun, 28 Mar 2010 16:58:49 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 5586 Cc: Chong Yidong , 5586@debbugs.gnu.org, Paul Pogonyshev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > 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? For one, it would allow users to turn it on/off globally rather than having to do it for every mode. Also every mode shouldn't have to reinvent it. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 06 20:25:26 2017 Received: (at 5586) by debbugs.gnu.org; 7 Aug 2017 00:25:26 +0000 Received: from localhost ([127.0.0.1]:45064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deVrJ-0004kp-S6 for submit@debbugs.gnu.org; Sun, 06 Aug 2017 20:25:25 -0400 Received: from gproxy8-pub.mail.unifiedlayer.com ([67.222.33.93]:40844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deVrH-0004kb-9i for 5586@debbugs.gnu.org; Sun, 06 Aug 2017 20:25:23 -0400 Received: from cmgw3 (unknown [10.0.90.84]) by gproxy8.mail.unifiedlayer.com (Postfix) with ESMTP id E38891AB037 for <5586@debbugs.gnu.org>; Sun, 6 Aug 2017 18:25:16 -0600 (MDT) Received: from box522.bluehost.com ([74.220.219.122]) by cmgw3 with id u0RC1v00j2f2jeq010RFKg; Sun, 06 Aug 2017 18:25:16 -0600 X-Authority-Analysis: v=2.2 cv=epiv9shX c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=KeKAF7QvOSUA:10 a=69B5WoyybSQy7RS0FiwA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=/+XHapzUVyVp2Z7k5nL5xRLCpKXBw7cHktdsBwvxolQ=; b=sOx9iaKEHVbFSBQklDTZEtor43 olb+AJ3+Ts/vgQXdbE1+cNxhj/GnuPDn7oEYOufjabvaCkn3PFFrLyGCHCibOdf7mA2X+dULIRgte X6Vm6hQfT/jA12YMMWE0tJbVW; Received: from 75-166-24-97.hlrn.qwest.net ([75.166.24.97]:38700 helo=bapiya) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1deVr6-002QVY-Gq; Sun, 06 Aug 2017 18:25:12 -0600 From: Tom Tromey To: 5586@debbugs.gnu.org Subject: is this bug still valid? X-Attribution: Tom Date: Sun, 06 Aug 2017 18:25:11 -0600 Message-ID: <874ltki5qw.fsf@tromey.com> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.24.97 X-Exim-ID: 1deVr6-002QVY-Gq X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-24-97.hlrn.qwest.net (bapiya) [75.166.24.97]:38700 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-Local-Domain: yes X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 5586 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) js.el now has: (setq-local electric-indent-chars (append "{}():;," electric-indent-chars)) ;FIXME: js2-mode adds "[]*". ... so I think the original request for electric indentation has been met. Maybe the FIXME should be addressed by moving "[]" (and "*" - I don't know that this one is so useful) out of the comment and into the string? Hungry deletion seems like something that should be done generically in electric.el. Tom From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 31 12:08:18 2022 Received: (at 5586) by debbugs.gnu.org; 31 Jan 2022 17:08:18 +0000 Received: from localhost ([127.0.0.1]:40555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEaA5-0004Jf-SJ for submit@debbugs.gnu.org; Mon, 31 Jan 2022 12:08:18 -0500 Received: from quimby.gnus.org ([95.216.78.240]:48198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEaA4-0004JL-61 for 5586@debbugs.gnu.org; Mon, 31 Jan 2022 12:08:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7yfxj/PWc5OXjY1QFvKugWA3YT5gBkQLhSx4mLrDgNQ=; b=AT/1Glr6KnSzjdvThFbkK/cvtr HQKAGD/s6wtZPQ+Cvmf9jRqp0YhNJB4yfw+nbSVtF1jOGJPQRQjJuUbJR5YXDvAYVgoet0QWk7qj8 1KMQUpC3LVNpls780U5ti3n28RBHk9MvLbkCmGUdi5kDC0mPi4dsbW8OSVncGlzYYXpY=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEa9v-0004mC-2P; Mon, 31 Jan 2022 18:08:09 +0100 From: Lars Ingebrigtsen To: Tom Tromey Subject: Re: bug#5586: 23.1.92.1; Electric indentation and hungry backspace deletion in JavaScript mode (js-mode) References: <201002170031.46472.pogonyshev@gmx.net> <874ltki5qw.fsf@tromey.com> X-Now-Playing: Nina Simone's _Little Girl Blue_: "Central Park Blues" Date: Mon, 31 Jan 2022 18:08:06 +0100 In-Reply-To: <874ltki5qw.fsf@tromey.com> (Tom Tromey's message of "Sun, 06 Aug 2017 18:25:11 -0600") Message-ID: <87wnifygsp.fsf_-_@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tom Tromey writes: > js.el now has: > > (setq-local electric-indent-chars > (append "{}():;," electric-indent-chars)) ;FIXME: js2-mode adds "[]*". > > ... so I think the original request for electric indentation has bee [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 5586 Cc: 5586@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Tom Tromey writes: > js.el now has: > > (setq-local electric-indent-chars > (append "{}():;," electric-indent-chars)) ;FIXME: js2-mode adds "[]*". > > ... so I think the original request for electric indentation has been > met. I guess so, so I'm closing this bug report. (If there's more to be done here, please respond to the debbugs address and we'll reopen.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 31 12:08:23 2022 Received: (at control) by debbugs.gnu.org; 31 Jan 2022 17:08:23 +0000 Received: from localhost ([127.0.0.1]:40558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEaAB-0004K2-4C for submit@debbugs.gnu.org; Mon, 31 Jan 2022 12:08:23 -0500 Received: from quimby.gnus.org ([95.216.78.240]:48212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEaA8-0004JU-3m for control@debbugs.gnu.org; Mon, 31 Jan 2022 12:08:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=52gK8iEvE8jgXjqKZsC0gbk0qbBm6G7448p3SkcyeEc=; b=eVM30EVpoKeS45d48v7a7q1Bmm TrBcHZ7G2qfD1/TkZ8ubZ6L+HNCwGR/ZBVJ6Vgk6M56cJRE5dsFMHSrpZxkchbsdazE8y6qTCC8FF nN5+28EmQntBfo+t+wrKRA+yUoROzh2QExBipkHW9CThogmxB0KIcYusAeDMe+P0z1CM=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nEaA0-0004mJ-Ag for control@debbugs.gnu.org; Mon, 31 Jan 2022 18:08:14 +0100 Date: Mon, 31 Jan 2022 18:08:11 +0100 Message-Id: <87v8xzygsk.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #5586 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 5586 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 5586 quit From unknown Fri Jun 20 07:16:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 01 Mar 2022 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator