Hi Keita,

Ikumi Keita <ik...@ikumi.que.jp> writes:

> Well, I don't notice any difference between the two images. I actually
> applied the proposed patch and opened the sample .dtx file, but it still
> doesn't exhibit differences to my eyes. Am I missing some subtle
> changes?

Thanks for looking at this.  Let me magnify the picture for you ;-)
Compare the ':nn':

or the '\cs' in these two:
> 1. What is the point to reset `font-lock-major-mode'? Isn't this
>    `font-lock-set-defaults'?
> 2. Why do we need to tell font-lock to update its internals? No other
>    style files do that.

I think the issue is that `font-lock' doesn't recognize the syntax
change for : and _ while the style is loaded.  I admit I'm not familiar
enough with the internals of `font-lock' to tell, but from trying, I had
to look at the internals of `font-lock-debug-fontify' and found out that
setting `font-lock-major-mode' to nil was needed.

Do you get other results if you apply the patch and comment out that
form?

Best, Arash
_______________________________________________
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to