From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: html, css, and js modes working together Date: Mon, 06 Feb 2017 13:25:09 -0700 Message-ID: <87efzb83tm.fsf@tromey.com> References: <87o9ynarz3.fsf@tromey.com> <87fujs80fk.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486412750 6433 195.159.176.226 (6 Feb 2017 20:25:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2017 20:25:50 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.91 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 21:25:46 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1capr8-0001W2-7v for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 21:25:46 +0100 Original-Received: from localhost ([::1]:50587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caprD-0004eU-Qr for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 15:25:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1capr7-0004eO-Qz for emacs-devel@gnu.org; Mon, 06 Feb 2017 15:25:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1capr4-000727-EW for emacs-devel@gnu.org; Mon, 06 Feb 2017 15:25:45 -0500 Original-Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:36881) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1capr3-0006up-Sf for emacs-devel@gnu.org; Mon, 06 Feb 2017 15:25:42 -0500 Original-Received: (qmail 21795 invoked by uid 0); 6 Feb 2017 20:25:17 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy2.mail.unifiedlayer.com with SMTP; 6 Feb 2017 20:25:17 -0000 Original-Received: from box522.bluehost.com ([74.220.219.122]) by cmgw2 with id hYRA1u01A2f2jeq01YRDLt; Mon, 06 Feb 2017 13:25:17 -0700 X-Authority-Analysis: v=2.1 cv=H5NInYoi c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=n2v9WMKugxEA:10 a=J7MggxBqHHQZTiL1d_kA:9 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ehtpCVH9T45CRKWmLjbiFrBsVNvG0ummGOYVAZ/kFVo=; b=EEXWFEvp/oipkTJQmM7FMt/eCl 9Kucmxer7QRDQMm/7/p/8s8MlYE3Zw0Cmm4POiPejiBVHfxFW07bVOWCKTTDBr8CXlH/hdPXThDzB gfO/2da2HeeHIXyiFwAxFS2B5; Original-Received: from 174-16-146-181.hlrn.qwest.net ([174.16.146.181]:42080 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1capqY-0000ot-M5; Mon, 06 Feb 2017 13:25:10 -0700 X-Attribution: Tom In-Reply-To: (Stefan Monnier's message of "Mon, 06 Feb 2017 09:17:39 -0500") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box522.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 174.16.146.181 X-Exim-ID: 1capqY-0000ot-M5 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 174-16-146-181.hlrn.qwest.net (pokyo) [174.16.146.181]:42080 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 69.89.18.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:212062 Archived-At: >>>>> "Stefan" == Stefan Monnier writes: >>> I guess my view is that it is always ok to make things in-tree work >>> better with each other, even at the expense of some code that is >>> out-of-tree and presumably relying on implementation details to do its >>> work. Stefan> What Dmitry is saying is that it's OK to define an ad-hoc multi-mode for Stefan> html+css+js (after all, they're all part of the HTML standard, oh and we Stefan> should also add SVG in there), but it should be structured as a separate Stefan> mode on top of html-mode, css-mode, and js-mode. I think there are two things going on here. One is the structure of the code. I think it's fine to structure things so that outside code can continue to reuse miscellaneous bits of the various modes. I mean, I think it's a pain since there's nothing in-tree indicating what can or cannot be done; but assuming someone can review patches, then it'll be ok. The other thing is what the user sees. I think it would be bad to tell users that to get full html support, including support for embedded js and css, they must do anything at all -- the default mode ought to support this. It's not clear to me if you mean you disagree with the second thing. Tom