From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#20915: 25.0.50; [js-mode] electric annoyances Date: Mon, 29 Jun 2015 11:33:48 +0300 Message-ID: <559102EC.5020308@yandex.ru> References: <87oak0njid.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1435566925 15018 80.91.229.3 (29 Jun 2015 08:35:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 08:35:25 +0000 (UTC) Cc: 20915@debbugs.gnu.org To: Stefan Monnier , Rasmus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 29 10:35:15 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 1Z9UX5-0004lJ-4k for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 10:35:15 +0200 Original-Received: from localhost ([::1]:41095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9UX4-0001vb-HV for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 04:35:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9UWy-0001vR-RQ for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 04:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9UWt-0001dD-PV for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 04:35:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9UWt-0001ci-LY for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 04:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z9UWt-00048d-5I for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 04:35:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jun 2015 08:35:03 +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.143556684215829 (code B ref 20915); Mon, 29 Jun 2015 08:35:03 +0000 Original-Received: (at 20915) by debbugs.gnu.org; 29 Jun 2015 08:34:02 +0000 Original-Received: from localhost ([127.0.0.1]:60871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9UVt-00046y-62 for submit@debbugs.gnu.org; Mon, 29 Jun 2015 04:34:01 -0400 Original-Received: from mail-wi0-f177.google.com ([209.85.212.177]:33216) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9UVr-00046h-EY for 20915@debbugs.gnu.org; Mon, 29 Jun 2015 04:33:59 -0400 Original-Received: by wiwl6 with SMTP id l6so92225191wiw.0 for <20915@debbugs.gnu.org>; Mon, 29 Jun 2015 01:33:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=ABTa1bsyvqueoxuaASi9nY2yihpJjF3qXnM8jCvTPyk=; b=1FZ9t049Dzm9xApRcUYXPvYf1DXsWB1hJOJAFlUKNEJwOIQ3SK/eNfwNo2/HKWr5Rf zJXNv68SjkPY0oNcUOqfmdby9lkCAF3kvX9Y/0UPsvebGQaKb68CXa++Qy8FgvIGrIN1 CSoNs6y7Xxa9ulS8i9muLCVlcEJr54NiMbgHmb/C9cpZs7+tIUYL3ti69u3l0bCY1GdQ Wb8woHvs+d/tw+pCIX5INK2V4Jf0qqSycPPS5tiBn0kIJ4PsgrTFtlcivFUpVJDgzNp+ 2xX3VkgryMg2kNQPUE7KDeqMm+DzmvSeWVrLkhycTZiVKu3gmIgU06WIN3VWzY5sfgut 1T8g== X-Received: by 10.180.99.168 with SMTP id er8mr19997344wib.86.1435566833629; Mon, 29 Jun 2015 01:33:53 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id lf4sm62992532wjb.42.2015.06.29.01.33.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 01:33:53 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: 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:104462 Archived-At: On 06/29/2015 04:12 AM, Stefan Monnier wrote: >> plot.scale.y = d3.scale.ordinal() >> .domain(bar.ybins) >> .rangeRoundBands([plot.height, 0 >> ], 0.1); > > electric-indent-mode presumes indentation works correctly. In this > case, I think we clearly have an indentation bug (can someone imagine > a sane programmer who'd want the above indentation?), so the thing to do > is to fix the indentation code. Not an indentation bug. The user manually indented the second line, hence the misalignment.