From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#41897: 28.0.50; JavaScript comment filling with mhtml-mode Date: Thu, 25 Jun 2020 14:53:44 -0600 Message-ID: <87sgeieujr.fsf@tromey.com> References: <20200620171827.7855.qmail@mail.muc.de> <87d05ta8z9.fsf@simenheg@gmail.com> <20200622191750.GA11506@ACM> <20200623083613.GA6957@ACM> <20200623162837.GB6957@ACM> <10235ec5-17c3-c281-b5ed-2c65a07bd02f@yandex.ru> <20200623191713.GC6957@ACM> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="112649"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Simen =?UTF-8?Q?Heggest=C3=B8yl?= , 41897@debbugs.gnu.org, Dmitry Gutov To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 25 22:54:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1joYst-000TCH-Ue for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jun 2020 22:54:11 +0200 Original-Received: from localhost ([::1]:46400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joYst-00056K-00 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jun 2020 16:54:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joYsk-00055j-6p for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2020 16:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1joYsj-00067P-UP for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2020 16:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1joYsj-0001qM-SE for bug-gnu-emacs@gnu.org; Thu, 25 Jun 2020 16:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tom Tromey Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jun 2020 20:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41897 X-GNU-PR-Package: emacs Original-Received: via spool by 41897-submit@debbugs.gnu.org id=B41897.15931184307068 (code B ref 41897); Thu, 25 Jun 2020 20:54:01 +0000 Original-Received: (at 41897) by debbugs.gnu.org; 25 Jun 2020 20:53:50 +0000 Original-Received: from localhost ([127.0.0.1]:41329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joYsX-0001pw-V6 for submit@debbugs.gnu.org; Thu, 25 Jun 2020 16:53:50 -0400 Original-Received: from gateway34.websitewelcome.com ([192.185.148.212]:36895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1joYsV-0001po-Jh for 41897@debbugs.gnu.org; Thu, 25 Jun 2020 16:53:48 -0400 Original-Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 84D8D38110 for <41897@debbugs.gnu.org>; Thu, 25 Jun 2020 15:53:46 -0500 (CDT) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id oYsUjFaPhSxZVoYsUjNthx; Thu, 25 Jun 2020 15:53:46 -0500 X-Authority-Reason: nr=8 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=lf48KxwXpHwVaqM6jY/eZzhgCD3Q4jE9bXmTMAWjb7A=; b=DwuGuuAIrdGmsPTCjM7Cp83km9 NvqBYNQytcO8uyAdL+Ne7/azDcXqh/1jbbDGnqhpSscGlKkqH6AoARFf6KpOii/wZwYqGkROZI2oE 9guqhNuDJoGHRj3Zd2cuZTmqi; Original-Received: from 174-16-104-48.hlrn.qwest.net ([174.16.104.48]:58418 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1joYsT-0032x6-Q1; Thu, 25 Jun 2020 14:53:45 -0600 X-Attribution: Tom In-Reply-To: <20200623191713.GC6957@ACM> (Alan Mackenzie's message of "Tue, 23 Jun 2020 19:17:13 +0000") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - debbugs.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.104.48 X-Source-L: No X-Exim-ID: 1joYsT-0032x6-Q1 X-Source-Sender: 174-16-104-48.hlrn.qwest.net (bapiya) [174.16.104.48]:58418 X-Source-Auth: tom+tromey.com X-Email-Count: 9 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182394 Archived-At: >>>>> "Alan" == Alan Mackenzie writes: Alan> Having several major modes in a single buffer has always been problematic Alan> in Emacs. Personally, I think there needs to be amendments in the Alan> low-level C code to support it properly, but I'm not able to do this work Alan> on my own, and there doesn't seem to be enough enthusiasm on other Alan> people's part to help out. mhtml-mode was a stab at making this work. It does require some more changes in Emacs (there's another bug open about font-lock that requires some changes to the font-lock code, but there are also a few more I could list), but I didn't come across anything requiring C changes. What changes are you thinking of? Dmitry> TBH I'm not sure if mhtml-mode does the save-and-restore dance which Dmitry> would be necessary for this. mmm-mode does, though. It does. Whatever happened to the idea of pulling mmm into Emacs core? Maybe we could get rid of mhtml-mode. Tom