From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: html, css, and js modes working together Date: Tue, 14 Feb 2017 03:34:38 +0200 Message-ID: <53c6ef89-7c22-dfbb-fd7d-e5fbdbe34733@yandex.ru> References: <87o9ynarz3.fsf@tromey.com> <877f4z6i8n.fsf@tromey.com> <87poipzr0l.fsf@tromey.com> <87efz44o47.fsf@tromey.com> <87r3331hdg.fsf@tromey.com> <5a7078f5-3dbc-acc5-f293-6200e77f73b2@yandex.ru> <87inoe24d0.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1487036095 17461 195.159.176.226 (14 Feb 2017 01:34:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2017 01:34:55 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 Cc: Stefan Monnier , emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 14 02:34:50 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 1cdS13-00041i-F7 for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2017 02:34:49 +0100 Original-Received: from localhost ([::1]:60399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdS19-0000uM-5O for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2017 20:34:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdS11-0000u4-TS for emacs-devel@gnu.org; Mon, 13 Feb 2017 20:34:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdS0x-0003mB-T8 for emacs-devel@gnu.org; Mon, 13 Feb 2017 20:34:47 -0500 Original-Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:35435) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cdS0x-0003lM-ML for emacs-devel@gnu.org; Mon, 13 Feb 2017 20:34:43 -0500 Original-Received: by mail-wm0-x232.google.com with SMTP id v186so5615323wmd.0 for ; Mon, 13 Feb 2017 17:34:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0aChqaP6dOo5e5H2HPfZc+WnBDz+vt7rkvbwZch81oo=; b=iw7F8b+FC58vXZsSds/aEBQep/v0Vm0Q09f8aN8rGn3Q42CThcLIHo8f1pwYpr435j RqvKa6pO8zIDYecL8NG2QEhbXxyTPjSChqbrFsKCGDPUnTFJFM+JB4T89kyEDShDX2Ps 2+HpfYk3S/euaeg75ZFgVbmqlJlseqdo7I95K3VVacmBu2bgn0EW0GPwjQQzcRrjc4U0 EdqYYtFmesHS6Ok0D20A2WSfGCvJ5iasHfn4bTVQ+hXhbjYTc2ByqMBf6yuhXEM3/7jf GOefrmzCEokS7ZaJwMh9hspOSVXH7O2EQarsUVG8s9ipO0SvOEYYZUl95Xru33rJNrld hxDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0aChqaP6dOo5e5H2HPfZc+WnBDz+vt7rkvbwZch81oo=; b=BuWNa26I0NTMq6iKWL3eG0j89Oy9WFuqqUfu462xipVfoF0irA48ocHh2l0DloXSvj Ti69TyYO2UWCPplFuhZ8AhW9MA3UKwnFsa2kAUryxBifKTlg4vMEj+G+IMg6isoath4X gp1jm3DS0S8xAsN6IUQxeJMSy5472y77Mq6/0Yg1g0H4vnzbO1XQ1VnBis7H580zxhcu VBUEbI1mmfTsccAgyJyxKOYKbp354rPT861FfFfjl9reYAjEbE861PCdrOira624ydA0 Q6ZxizOs2kysObNkgohFVddUQeP4FSfjKNOn7sBUgN9HQw/g5XFpkLzRw6GXgvlWtoIt S6/A== X-Gm-Message-State: AMke39lrdonnVfQX0ebdCxIM1sZ006EQavTOUH9a3Yvhnyi0cgHkTFbNaqA+FQh6oD2ojQ== X-Received: by 10.223.160.14 with SMTP id k14mr24854244wrk.69.1487036081055; Mon, 13 Feb 2017 17:34:41 -0800 (PST) Original-Received: from [192.168.1.3] ([185.105.173.41]) by smtp.googlemail.com with ESMTPSA id w127sm7414339wmg.30.2017.02.13.17.34.39 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 13 Feb 2017 17:34:40 -0800 (PST) In-Reply-To: <87inoe24d0.fsf@tromey.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::232 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:212358 Archived-At: On 13.02.2017 04:48, Tom Tromey wrote: > Here's my current patch, now with pre- and post-command hooks and > flyspell integration. Font lock mostly works but has some oddities, and > I still didn't fix the html comment/syntax bug that Clément found. Thanks, the patch looks good on a high level. I do see the oddities, and it seems the wonkiness is more related to setting up submode regions, because when the font-lock acts up, indentation can fail on that line as well. Here's a broken example, for you reference. From the outset, the closing "style" tag and both "script" tags (though not their contents) are unfontified. By adding/deleting the closing ">" in the closing "" tag, I can break the fontification of the remainder of the file, and indentation gets broken as well. I'm not sure, but maybe the missing thing is the removal of the 'mhtml-submode' text property near the beginning of mhtml-syntax-propertize. test