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:49:56 +0300 Message-ID: <559106B4.1020104@yandex.ru> References: <87oak0njid.fsf@gmx.us> <87bnfzwbio.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 1435567883 29687 80.91.229.3 (29 Jun 2015 08:51:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 08:51:23 +0000 (UTC) Cc: 20915@debbugs.gnu.org To: Rasmus , monnier@iro.umontreal.ca Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 29 10:51: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 1Z9UmX-0003qH-8v for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 10:51:13 +0200 Original-Received: from localhost ([::1]:41173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9UmW-0002oG-Ps for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 04:51:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9UmR-0002ld-Sg for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 04:51:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9UmN-0001qY-RR for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 04:51:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9UmN-0001pw-9p for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 04:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z9UmM-0004WN-Ul for bug-gnu-emacs@gnu.org; Mon, 29 Jun 2015 04:51: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:51: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.143556781317320 (code B ref 20915); Mon, 29 Jun 2015 08:51:02 +0000 Original-Received: (at 20915) by debbugs.gnu.org; 29 Jun 2015 08:50:13 +0000 Original-Received: from localhost ([127.0.0.1]:60884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9UlX-0004VH-QY for submit@debbugs.gnu.org; Mon, 29 Jun 2015 04:50:12 -0400 Original-Received: from mail-wi0-f180.google.com ([209.85.212.180]:36903) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9UlT-0004Uj-Gx for 20915@debbugs.gnu.org; Mon, 29 Jun 2015 04:50:08 -0400 Original-Received: by wicgi11 with SMTP id gi11so65459651wic.0 for <20915@debbugs.gnu.org>; Mon, 29 Jun 2015 01:50:01 -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=EOV2kprwqmHCNFXKF9+LLflPHkZwjlaBHApNsCMcfTo=; b=g6UuUWSNO3oQfBsJld7/Wzdc7TVXrOR9gpYS9JIk9urRyHimNcvomB72yh6AzUVYC6 T2f4dyF4aWEKOaZ4Os+SaPN2qSnOfv5jueqYz0peu8ABe2JIoMvvxljiVz7b3V86BZOe 03HVIlq0yZSfu6OZvuGZYrt2FOgn8yXCLeRCT/rU8mjsEGbVylgmfre/Vkr6WAbxfuIh alh/3f5gRV++yWa9Y70oP1mTqyyM+DzQlxmKQLgMH+Aq10f+AwnYf4M9A/dg8WCrpK+9 UpCIsEZamYZk20ij9cIMbi/7O9NjxzL+UegGgjqG5dhMrstOl4zBioJh0H1mNChSl5RV 2GzQ== X-Received: by 10.180.13.10 with SMTP id d10mr20083176wic.57.1435567801620; Mon, 29 Jun 2015 01:50:01 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id p2sm11056996wix.11.2015.06.29.01.50.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 01:50:01 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <87bnfzwbio.fsf@gmx.us> 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:104463 Archived-At: On 06/29/2015 04:26 AM, Rasmus wrote: > What about differentiating between functions saved to a var or an object > slot: > > var foo = function(a,b){...}; > baz.f = function(a,b){...}; > > Versus functions that are not saved. > > [1,2,3].map(function(d){...}); > > Is that identifiable and desirable? > > I'm expect Dmitry has a better understanding of this issue. Looks doable: you skip to the current "function" keyword and see if it's preceded by an assignment operator. An electric-layout-rules element can be a function, so that's not a problem. > And you would not consider the lonely "]" an stylistic annoyance? That, I > guess, is the work of electric layout. I'm not sure it is. Before we start guessing, why don't you write down the minimal configuration needed to reproduce this? Start with 'emacs -Q'.