Subject: bug#37938: electric-pair-mode vs. U+0027 APOSTROPHE in mixed modes like HTML

From: Dmitry Gutov <[email-masked]>
Date: Tue, 29 Oct 2019 15:56:38 +0200

On 29.10.2019 13:54, Lars Ingebrigtsen wrote:
 > and in that context it's definitely a quote character.  But when
 > you're
 > typing text in HTML, then it's not.
 >
 > mhtml already has support for different syntaxes in CSS/JS/HTML -- is
 > there a way to switch the syntax table when in tags and when not?

I'm not sure we need to go that far. sgml-syntax-propertize-rules 
already changes syntax on quotes typed outside of tags.

It's probably up to electric-pair-mode to respect that.