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#8576: 23.2; js-mode doesn't support multi-line variable declarations Date: Fri, 08 Jun 2012 03:04:16 +0400 Message-ID: <4FD13370.8000406@yandex.ru> References: <4DB915B0.7010605@ubercode.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339110314 29271 80.91.229.3 (7 Jun 2012 23:05:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Jun 2012 23:05:14 +0000 (UTC) To: fhd@ubercode.de, 8576@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 08 01:05:12 2012 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 1ScllQ-000433-Bj for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jun 2012 01:05:12 +0200 Original-Received: from localhost ([::1]:45311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScllQ-0003cZ-55 for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jun 2012 19:05:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScllN-0003as-2j for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2012 19:05:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Scll0-0005Y0-Gb for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2012 19:05:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Scll0-0005Xw-60 for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2012 19:04:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SclnB-00059h-Vs for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2012 19:07:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <4DB915B0.7010605@ubercode.de> Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jun 2012 23:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8576 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8576-submit@debbugs.gnu.org id=B8576.133911039919787 (code B ref 8576); Thu, 07 Jun 2012 23:07:01 +0000 Original-Received: (at 8576) by debbugs.gnu.org; 7 Jun 2012 23:06:39 +0000 Original-Received: from localhost ([127.0.0.1]:34007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sclmp-000596-HI for submit@debbugs.gnu.org; Thu, 07 Jun 2012 19:06:39 -0400 Original-Received: from forward16.mail.yandex.net ([95.108.253.141]:41788) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sclml-00058q-S4 for 8576@debbugs.gnu.org; Thu, 07 Jun 2012 19:06:38 -0400 Original-Received: from smtp17.mail.yandex.net (smtp17.mail.yandex.net [95.108.252.17]) by forward16.mail.yandex.net (Yandex) with ESMTP id 265BAD21B13; Fri, 8 Jun 2012 03:04:13 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1339110253; bh=h4Q0StljuTp/OueG+8Yrx6j/E14Wcvom4ukh8U1GbNo=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=w9uNcUTmrrmAAKzFO5baoEIDbY0N4GamizmSbqD8nFx19ghk2ZROyXz+ZNUc20id2 U/920wHS5FwoiY7eoPVn96WxahYAds4IHDlp40I/6AhFWI8QbsubSsigEGmmqlr0u2 frbIPCy9AL2GLVyFnWPYvGE18C1lC4DNSJEREyic= Original-Received: from smtp17.mail.yandex.net (localhost [127.0.0.1]) by smtp17.mail.yandex.net (Yandex) with ESMTP id 04C6D1900235; Fri, 8 Jun 2012 03:04:12 +0400 (MSK) Original-Received: from 98-87.nwlink.spb.ru (98-87.nwlink.spb.ru [178.252.98.87]) by smtp17.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 4CDasD8i-4CDmNgXS; Fri, 8 Jun 2012 03:04:12 +0400 X-Yandex-Rcpt-Suid: fhd@ubercode.de X-Yandex-Rcpt-Suid: 8576@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1339110252; bh=h4Q0StljuTp/OueG+8Yrx6j/E14Wcvom4ukh8U1GbNo=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=JjPEG7wwi9kW+etRsHandPzqLDwvB3tm1+bJbFPhA0op6xdWDaKDX5YiUvUux+P9W ZlpDAqnL8TsVup4rYjAHeOV2Q8ec2KkPOc5j6FLSuqS3stal0/h02Gj6A+GrUhzuSx GIjYJD0K4RwrcCjobYBlsES5Cd+EtRTZwQjvLW3k= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:60772 Archived-At: > There's still one thing that I'd like to behave differently, but I > thought I'd best discuss this first. ... > Would that be acceptable? It'll make the code a bit more complicated, > but I think it's worth it. Personally, I think that's the desirable behavior, but you should keep in mind that this will require the indentation engine to look ahead in the buffer and account for the case when there's no text after the point, for example. Suppose the first value function actually has a non-empty body, and we're just typing the code for the first time. Even if we're using a snippet package that inserted "function() {}" for us, we will type the important comma after "}" only when the function body is written, and then we'll have to go back to reindent the body again. I think that's acceptable, but that's not how indentation functions in Emacs usually work. -- Dmitry