From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Date: Tue, 30 Jun 2015 10:07:59 -0400 Message-ID: References: <87oak0njid.fsf@gmx.us> <559102EC.5020308@yandex.ru> <559150C1.7080504@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435673369 22789 80.91.229.3 (30 Jun 2015 14:09:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2015 14:09:29 +0000 (UTC) Cc: 20915@debbugs.gnu.org, Rasmus To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 30 16:09:14 2015 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 1Z9wDo-0004vR-FK for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2015 16:09:12 +0200 Original-Received: from localhost ([::1]:47213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9wDn-0001ig-Pa for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Jun 2015 10:09:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9wDj-0001ib-79 for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 10:09:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9wDf-0006lZ-7W for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 10:09:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9wDf-0006lO-42 for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 10:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z9wDe-0004TM-N5 for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 10:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jun 2015 14:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20915 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20915-submit@debbugs.gnu.org id=B20915.143567328417131 (code B ref 20915); Tue, 30 Jun 2015 14:09:02 +0000 Original-Received: (at 20915) by debbugs.gnu.org; 30 Jun 2015 14:08:04 +0000 Original-Received: from localhost ([127.0.0.1]:34569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9wCi-0004SF-9S for submit@debbugs.gnu.org; Tue, 30 Jun 2015 10:08:04 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:36638) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9wCf-0004Ro-UC for 20915@debbugs.gnu.org; Tue, 30 Jun 2015 10:08:02 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t5UE7xkU010841; Tue, 30 Jun 2015 10:07:59 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 96B55660ED; Tue, 30 Jun 2015 10:07:59 -0400 (EDT) In-Reply-To: <559150C1.7080504@yandex.ru> (Dmitry Gutov's message of "Mon, 29 Jun 2015 17:05:53 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5353=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5353> : inlines <3303> : streams <1463977> : uri <1973004> 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:104532 Archived-At: >> FWIW, given the first two lines, the third line's indentation is wrong. >> Whether the first two lines where auto-indented or manually indented >> does not matter in this regard (IMNSHO). > Not according to the current algorithm (which is based on (nth > 1 parse-status)). I'm not talking about the current code, but about the behavior we should strive for. > Fixing that might require a rewrite on top of e.g. SMIE. Although that might > be the point you're making. Kind of: I haven't actually looked at the code, so I have no idea how easy/hard it would be to make it behave like we want (and AFAIK, using SMIE for C-style syntaxes is still an open problem, the first hurdle being the choice of using either "{...}" or "...;" for the branches of "if"). Stefan