* bug#43373: 28.0.50; Regression: Unrecognized style region in mhtml-mode
@ 2020-09-13 11:32 Simen Heggestøyl
0 siblings, 0 replies; 6+ messages in thread
From: Simen Heggestøyl @ 2020-09-13 11:32 UTC (permalink / raw
To: 43373
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
The following bug is a regression since 27.1 introduced on master by
commit eae028b9e2c23f84dbd130d49da65f9db1db932f (found by bisection).
To reproduce, open the attached file 'mhtml-test.html' from
'emacs -Q'. The region from position 516 to 558 (approximately the
"button {cursor: pointer; }" part) is not recognized as being part of
the style block, and doesn't receive the correct mode (HTML+CSS).
[-- Attachment #2: mhtml-test.html --]
[-- Type: text/html, Size: 566 bytes --]
[-- Attachment #3: Type: text/plain, Size: 9 bytes --]
-- Simen
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#43373: 28.0.50; Regression: Unrecognized style region in mhtml-mode
[not found] <87sgbllxoj.fsf@simenheg@gmail.com>
@ 2021-01-27 6:09 ` Lars Ingebrigtsen
2021-01-27 8:24 ` Simen Heggestøyl
0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-27 6:09 UTC (permalink / raw
To: Simen Heggestøyl; +Cc: 43373
Simen Heggestøyl <simenheg@runbox.com> writes:
> The following bug is a regression since 27.1 introduced on master by
> commit eae028b9e2c23f84dbd130d49da65f9db1db932f (found by bisection).
>
> To reproduce, open the attached file 'mhtml-test.html' from
> 'emacs -Q'. The region from position 516 to 558 (approximately the
> "button {cursor: pointer; }" part) is not recognized as being part of
> the style block, and doesn't receive the correct mode (HTML+CSS).
I was able to reproduce this in September, but I'm no longer able to (in
Emacs 28), so perhaps it has been fixed in the meantime? Do you still
see this problem?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#43373: 28.0.50; Regression: Unrecognized style region in mhtml-mode
2021-01-27 6:09 ` bug#43373: 28.0.50; Regression: Unrecognized style region in mhtml-mode Lars Ingebrigtsen
@ 2021-01-27 8:24 ` Simen Heggestøyl
2021-01-28 2:58 ` Lars Ingebrigtsen
0 siblings, 1 reply; 6+ messages in thread
From: Simen Heggestøyl @ 2021-01-27 8:24 UTC (permalink / raw
To: Lars Ingebrigtsen; +Cc: 43373
Lars Ingebrigtsen <larsi@gnus.org> writes:
> I was able to reproduce this in September, but I'm no longer able to (in
> Emacs 28), so perhaps it has been fixed in the meantime? Do you still
> see this problem?
Hi Lars.
Just checked this from master at 9d50d7a0c6, still seeing the same error
as before.
-- Simen
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#43373: 28.0.50; Regression: Unrecognized style region in mhtml-mode
2021-01-27 8:24 ` Simen Heggestøyl
@ 2021-01-28 2:58 ` Lars Ingebrigtsen
2021-01-28 7:25 ` Simen Heggestøyl
0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-28 2:58 UTC (permalink / raw
To: Simen Heggestøyl; +Cc: 43373
Simen Heggestøyl <simenheg@runbox.com> writes:
> Just checked this from master at 9d50d7a0c6, still seeing the same error
> as before.
Sorry; I should have checked with emacs -Q -- with that I can indeed
reproduce the bug, so I started bisecting my .emacs to see why I
couldn't in my normal Emacs.
And it is, bizarrely enough, this:
./src/emacs --eval '(global-so-long-mode 1)' /tmp/mhtml-test.html
With global-so-long-mode switched on, mhtml-mode correctly switches to
"HTML+CSS" as soon as I move point into "button" part of the CSS
section!
Which is just bizarre, because that shouldn't be triggering at all in
this file (and isn't, as far as I can tell).
Before I start trying to find out what's going on here, because this is
just all to odd -- are you seeing the same?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#43373: 28.0.50; Regression: Unrecognized style region in mhtml-mode
2021-01-28 2:58 ` Lars Ingebrigtsen
@ 2021-01-28 7:25 ` Simen Heggestøyl
2021-01-29 5:28 ` Lars Ingebrigtsen
0 siblings, 1 reply; 6+ messages in thread
From: Simen Heggestøyl @ 2021-01-28 7:25 UTC (permalink / raw
To: Lars Ingebrigtsen; +Cc: 43373
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Before I start trying to find out what's going on here, because this is
> just all to odd -- are you seeing the same?
Yup.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#43373: 28.0.50; Regression: Unrecognized style region in mhtml-mode
2021-01-28 7:25 ` Simen Heggestøyl
@ 2021-01-29 5:28 ` Lars Ingebrigtsen
0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-29 5:28 UTC (permalink / raw
To: Simen Heggestøyl; +Cc: 43373
Simen Heggestøyl <simenheg@runbox.com> writes:
>> Before I start trying to find out what's going on here, because this is
>> just all to odd -- are you seeing the same?
>
> Yup.
It appears that if I say
(defun so-long-detected-long-line-p () nil)
then the problem can be reproduced, but something in that function is
doing something to the buffer which makes font locking happen
correctly... I think it's probably the narrow-to-region things that
makes Emacs re-fontify the buffer at opportune moments, which somehow
makes the multi-mode thing trigger from a better context... or
something...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-01-29 5:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <87sgbllxoj.fsf@simenheg@gmail.com>
2021-01-27 6:09 ` bug#43373: 28.0.50; Regression: Unrecognized style region in mhtml-mode Lars Ingebrigtsen
2021-01-27 8:24 ` Simen Heggestøyl
2021-01-28 2:58 ` Lars Ingebrigtsen
2021-01-28 7:25 ` Simen Heggestøyl
2021-01-29 5:28 ` Lars Ingebrigtsen
2020-09-13 11:32 Simen Heggestøyl
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.