GNU bug report logs - #37938
electric-pair-mode vs. U+0027 APOSTROPHE in mixed modes like HTML

Previous Next

Package: emacs;

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

Date: Sun, 27 Oct 2019 03:23:02 UTC

Severity: minor

Full log


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

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Lars Ingebrigtsen <larsi <at> gnus.org>, 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 37938 <at> debbugs.gnu.org
Subject: Re: bug#37938: electric-pair-mode vs. U+0027 APOSTROPHE in mixed
 modes like HTML
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.




This bug report was last modified 5 years and 233 days ago.

Previous Next


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