GNU bug report logs - #46312
HTML+ mode vs. quotes

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 4 Feb 2021 23:56:02 UTC

Severity: minor

Tags: confirmed, patch

Merged with 40844, 43941

Found in versions 26.3, 27.0.91

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46312 in the body.
You can then email your comments to 46312 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#46312; Package emacs. (Thu, 04 Feb 2021 23:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 04 Feb 2021 23:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: HTML+ mode vs. quotes
Date: Fri, 05 Feb 2021 06:57:42 +0800
Not sure if fixed yet. emacs-version "27.1"

$ emacs -q file.html
using:

<!DOCTYPE html>
<html>
<head>
 <meta charset="utf-8">
 <title>TEST</title>
</head>
<body>
 <p>Never mind ' here to here '. But...</p>

 <p>If there is a unmatched 「 here,</p>

 <p>Then any text beyond ' here becomes a different color,</p>

 <p>That lasts though here,</p>

 <p>And only after ' here, finially stops.</p>

 <p>However now ' here to here ' looks different too!</p>

 <p>It's a bad looking emacs' problem. That's a fact. And it could
 influence the rest of the file. Unless one call's it quits :-)</p>
</body>
</html>




Forcibly Merged 40844 43941 46312. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 05 Feb 2021 09:43:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46312; Package emacs. (Fri, 05 Feb 2021 09:44:02 GMT) Full text and rfc822 format available.

Message #10 received at 46312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 46312 <at> debbugs.gnu.org
Subject: Re: bug#46312: HTML+ mode vs. quotes
Date: Fri, 05 Feb 2021 10:42:53 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

>  <p>If there is a unmatched 「 here,</p>

You reported this in 40844 and 43941 and probably some other ones, too.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) patch. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 13 Jun 2021 12:22:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46312; Package emacs. (Mon, 14 Jun 2021 13:01:02 GMT) Full text and rfc822 format available.

Message #15 received at 46312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: jidanni <at> jidanni.org, Eli Zaretskii <eliz <at> gnu.org>, 40844 <at> debbugs.gnu.org,
 43941 <at> debbugs.gnu.org, 46312 <at> debbugs.gnu.org
Subject: Re: bug#46312: HTML+ mode vs. quotes
Date: Mon, 14 Jun 2021 15:00:16 +0200
Stephen Berman <stephen.berman <at> gmx.net> writes:

> Upthread Eli said "some SGML/HTML expert should say if that is TRT".
> I'm no such expert so I can't make that decision.

I'm not either, but at this point I'd rather apply the patch and then we
can see whether some SGML expert pipes up...

> Here's the test, in case someone else wants to see if
> they can figure it out; I haven't succeeded:

Just needs a `font-lock-ensure' after `html-mode'.  :-)  Then the test
fails without your patch, and passes with your patch.

So I went ahead and pushed your patch (and the test) to Emacs 28 (with
some minor changes to the test).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 28.1, send any further explanations to 46312 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 14 Jun 2021 13:01:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46312; Package emacs. (Mon, 14 Jun 2021 13:03:02 GMT) Full text and rfc822 format available.

Message #20 received at 46312 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: jidanni <at> jidanni.org, 40844 <at> debbugs.gnu.org, stephen.berman <at> gmx.net,
 43941 <at> debbugs.gnu.org, 46312 <at> debbugs.gnu.org
Subject: Re: bug#46312: HTML+ mode vs. quotes
Date: Mon, 14 Jun 2021 16:02:02 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: 46312 <at> debbugs.gnu.org,  Eli Zaretskii <eliz <at> gnu.org>,
>   40844 <at> debbugs.gnu.org,  43941 <at> debbugs.gnu.org,  jidanni <at> jidanni.org
> Date: Mon, 14 Jun 2021 15:00:16 +0200
> 
> Stephen Berman <stephen.berman <at> gmx.net> writes:
> 
> > Upthread Eli said "some SGML/HTML expert should say if that is TRT".
> > I'm no such expert so I can't make that decision.
> 
> I'm not either, but at this point I'd rather apply the patch and then we
> can see whether some SGML expert pipes up...

Fine with me.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46312; Package emacs. (Mon, 14 Jun 2021 13:53:02 GMT) Full text and rfc822 format available.

Message #23 received at 46312 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: jidanni <at> jidanni.org, Eli Zaretskii <eliz <at> gnu.org>, 40844 <at> debbugs.gnu.org,
 43941 <at> debbugs.gnu.org, 46312 <at> debbugs.gnu.org
Subject: Re: bug#46312: HTML+ mode vs. quotes
Date: Mon, 14 Jun 2021 15:52:40 +0200
On Mon, 14 Jun 2021 15:00:16 +0200 Lars Ingebrigtsen <larsi <at> gnus.org> wrote:

> Stephen Berman <stephen.berman <at> gmx.net> writes:
>
>> Upthread Eli said "some SGML/HTML expert should say if that is TRT".
>> I'm no such expert so I can't make that decision.
>
> I'm not either, but at this point I'd rather apply the patch and then we
> can see whether some SGML expert pipes up...

Sounds good.

>> Here's the test, in case someone else wants to see if
>> they can figure it out; I haven't succeeded:
>
> Just needs a `font-lock-ensure' after `html-mode'.  :-)  Then the test
> fails without your patch, and passes with your patch.

Ah, thanks.  The ways of font lock are unfathomable to me.

> So I went ahead and pushed your patch (and the test) to Emacs 28 (with
> some minor changes to the test).

Thanks.  I noticed, unfortunately only just now, that the ert test
includes the unused let-bound variable `results' which I inadvertantly
left behind from the previous version, and which will probably make the
byte-compiler complain.

Steve Berman




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46312; Package emacs. (Mon, 14 Jun 2021 13:59:03 GMT) Full text and rfc822 format available.

Message #26 received at 46312 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: jidanni <at> jidanni.org, Eli Zaretskii <eliz <at> gnu.org>, 40844 <at> debbugs.gnu.org,
 43941 <at> debbugs.gnu.org, 46312 <at> debbugs.gnu.org
Subject: Re: bug#46312: HTML+ mode vs. quotes
Date: Mon, 14 Jun 2021 15:58:14 +0200
Stephen Berman <stephen.berman <at> gmx.net> writes:

> Thanks.  I noticed, unfortunately only just now, that the ert test
> includes the unused let-bound variable `results' which I inadvertantly
> left behind from the previous version, and which will probably make the
> byte-compiler complain.

Yup; now removed.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Jul 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 287 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.