From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Felix H. Dahlke" Newsgroups: gmane.emacs.bugs Subject: bug#8576: 23.2; js-mode doesn't support multi-line variable declarations Date: Fri, 08 Jun 2012 05:13:47 +0200 Message-ID: <4FD16DEB.7020905@ubercode.de> References: <4FD13370.8000406@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1339125293 23568 80.91.229.3 (8 Jun 2012 03:14:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2012 03:14:53 +0000 (UTC) Cc: 8576@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 08 05:14:52 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 1Scpf0-0003D7-9I for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jun 2012 05:14:50 +0200 Original-Received: from localhost ([::1]:40574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Scpf0-0002qt-0x for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jun 2012 23:14:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Scpex-0002qm-Lc for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2012 23:14:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Scpev-0006Wu-W9 for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2012 23:14:47 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Scpev-0006Wq-So for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2012 23:14:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Scph8-0002OV-K0 for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2012 23:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Felix H. Dahlke" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Jun 2012 03:17:02 +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.13391253739126 (code B ref 8576); Fri, 08 Jun 2012 03:17:02 +0000 Original-Received: (at 8576) by debbugs.gnu.org; 8 Jun 2012 03:16:13 +0000 Original-Received: from localhost ([127.0.0.1]:34148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScpgL-0002N9-3J for submit@debbugs.gnu.org; Thu, 07 Jun 2012 23:16:13 -0400 Original-Received: from vserver2179.vserver-on.de ([84.38.67.140]:49208) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScpgJ-0002Mx-AX for 8576@debbugs.gnu.org; Thu, 07 Jun 2012 23:16:12 -0400 Original-Received: from [192.168.1.3] (xdsl-78-35-172-234.netcologne.de [78.35.172.234]) (Authenticated sender: fhd@ubercode.de) by vserver2179.vserver-on.de (Postfix) with ESMTPSA id 67C4E1FF001; Fri, 8 Jun 2012 05:14:04 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 In-Reply-To: <4FD13370.8000406@yandex.ru> 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:60775 Archived-At: On 06/08/2012 01:04 AM, Dmitry Gutov wrote: > 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. You're right, it's harder than I thought. I'm currently looking for similar problems in other modes and see how they handle it.