GNU bug report logs - #40844
html mode sometimes fooled by apostrophe

Previous Next

Package: emacs;

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

Date: Sat, 25 Apr 2020 11:27:02 UTC

Severity: minor

Tags: confirmed, patch

Merged with 43941, 46312

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.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 40844 <at> debbugs.gnu.org, 43941 <at> debbugs.gnu.org,
 jidanni <at> jidanni.org
Subject: Re: bug#40844: html mode sometimes fooled by apostrophe
Date: Sun, 13 Jun 2021 14:21:36 +0200
Stephen Berman <stephen.berman <at> gmx.net> writes:

> I made a silly mistake (it was late and I was tired).  Here is a
> corrected version:

I can confirm that this patch solves the test cases here.

> With this patch, when any of the paired-bracket characters is followed
> by `'' in html-mode, there is indeed no string face fontification on the
> latter (and following characters).  The following function demonstrates
> this:

[...]

> I wanted to turn this function into a test, and that's what the
> commented out lines are supposed to do.  But when I uncomment these
> lines and call this function with the unpatched (i.e. current) version
> of sgml-mode-syntax-table, it still shows default face for `'' with all
> the paired-bracket characters.  Yet when I step through the function
> with Ediff, I do see some cases with font-lock-string-face.  I don't
> understand what's going on here.

Might be a timing issue, perhaps?

In any case, the patch is an improvement, so perhaps that should be
pushed anyway?

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




This bug report was last modified 3 years and 343 days ago.

Previous Next


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