From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: web-mode.el Date: Tue, 19 Jun 2012 05:00:23 +0400 Message-ID: <4FDFCF27.8000309@yandex.ru> References: <4FD9F40C.90406@yandex.ru> <4FDA927D.50306@yandex.ru> <4FDC89B7.3050907@yandex.ru> 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 1340067638 5787 80.91.229.3 (19 Jun 2012 01:00:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2012 01:00:38 +0000 (UTC) Cc: cyd@gnu.org, lennart.borgman@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 19 03:00:37 2012 Return-path: Envelope-to: ged-emacs-devel@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 1Sgmo7-00084Y-V5 for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2012 03:00:36 +0200 Original-Received: from localhost ([::1]:48222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sgmo8-0006R7-1d for ged-emacs-devel@m.gmane.org; Mon, 18 Jun 2012 21:00:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sgmo4-0006Qp-Vp for emacs-devel@gnu.org; Mon, 18 Jun 2012 21:00:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sgmo3-00027p-BK for emacs-devel@gnu.org; Mon, 18 Jun 2012 21:00:32 -0400 Original-Received: from forward6.mail.yandex.net ([77.88.60.125]:40336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sgmo0-00026U-Dk; Mon, 18 Jun 2012 21:00:28 -0400 Original-Received: from smtp7.mail.yandex.net (smtp7.mail.yandex.net [77.88.61.55]) by forward6.mail.yandex.net (Yandex) with ESMTP id 714411120CD1; Tue, 19 Jun 2012 05:00:23 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340067623; bh=Z4CtsNbjaPasK/hHh3YCBdb3/IZ+FRbVpwmGCt46D9E=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=QtBKUXRbp1XN/OEHyf77CrECxK47QGAwxroY4TH8DoB6Byojpg+6OHMwhjXoUdQv9 7Oj6TeqaRpdZcMNnjtbr89hbAl+1sUOSxYPIuB1bj6Y62tbtmy7GHsyVpiNZHOCh2a O4EWgw9wwl/GvG/PBU1cUANo/fjSs8pnpSEUaQxg= Original-Received: from smtp7.mail.yandex.net (localhost [127.0.0.1]) by smtp7.mail.yandex.net (Yandex) with ESMTP id 311741580647; Tue, 19 Jun 2012 05:00:23 +0400 (MSK) Original-Received: from 98-87.nwlink.spb.ru (98-87.nwlink.spb.ru [178.252.98.87]) by smtp7.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 0Mg85dRH-0MgiloK2; Tue, 19 Jun 2012 05:00:22 +0400 X-Yandex-Rcpt-Suid: monnier@iro.umontreal.ca X-Yandex-Rcpt-Suid: cyd@gnu.org X-Yandex-Rcpt-Suid: lennart.borgman@gmail.com X-Yandex-Rcpt-Suid: emacs-devel@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340067623; bh=Z4CtsNbjaPasK/hHh3YCBdb3/IZ+FRbVpwmGCt46D9E=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=UPKvQBoX+FwUz8Le/AGOt18FavSWnn3yK2q41kDrLVuSoRS2QSaiDbfb+W2WAbCwu bie1KS0op2sKQPg/Dl+I0AEwE9991x7okMSme2Yd13TDppvnXFr0jhfCBZVQLbWqQw amg3DqJu3UdiitphudoyY8g20MbWxBoNk4xUVa4s= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 77.88.60.125 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151006 Archived-At: On 18.06.2012 5:49, Stefan Monnier wrote: >> Yes, well, except js-indent-line calls (widen) first thing, so >> (narrow-to-region) will not help. > > As mentioned earlier, we get to choose the supported interface, so if > `widen' can't be supported, we just need to change js-indent-line. > I wouldn't worry about it. I though the idea was to do something or other while retaining backward compatibility. From what I understand, `widen' is used to counteract the situation when a user calls `narrow-to-region' interactively. If supporting this is not a priority, okay. It occurs to me that, once the supported interface is established, introducing new syntax-table value becomes not strictly necessary because, for example, a version of Lennart's `with-chunks' macro can be implemented in Lisp by applying whitespace or comment-starter/ender syntax to foreign chunks around the body calls (idea from mmm-noweb). Is that right?