From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#43941: HTML+ mode: dangerous apostrophe after fullwidth parenthesis Date: Mon, 12 Oct 2020 19:21:08 +0200 Message-ID: <87d01nz7gb.fsf@rub.de> References: <87pn5oq1hj.5.fsf@jidanni.org> <831ri34i0b.fsf@gnu.org> <87o8l7zdh6.fsf@rub.de> <83o8l731yd.fsf@gnu.org> <87h7qzzae2.fsf@rub.de> <83lfgb2yss.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35248"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stephen Berman , 43941@debbugs.gnu.org, jidanni@jidanni.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 12 19:22:51 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kS1X7-00093p-Nf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Oct 2020 19:22:49 +0200 Original-Received: from localhost ([::1]:34882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kS1X5-0006lW-SF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Oct 2020 13:22:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kS1WM-0006kA-Cq for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2020 13:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kS1WM-0004Mv-4J for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2020 13:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kS1WM-0004X9-0u for bug-gnu-emacs@gnu.org; Mon, 12 Oct 2020 13:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Oct 2020 17:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43941 X-GNU-PR-Package: emacs Original-Received: via spool by 43941-submit@debbugs.gnu.org id=B43941.160252328717387 (code B ref 43941); Mon, 12 Oct 2020 17:22:01 +0000 Original-Received: (at 43941) by debbugs.gnu.org; 12 Oct 2020 17:21:27 +0000 Original-Received: from localhost ([127.0.0.1]:43867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kS1Vn-0004WM-Bw for submit@debbugs.gnu.org; Mon, 12 Oct 2020 13:21:27 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:59465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kS1Vl-0004W9-Rq for 43941@debbugs.gnu.org; Mon, 12 Oct 2020 13:21:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1602523271; bh=EwzyvNXZFUo4ujQXPo8aet/rf40K4Z1osUeJiM/BsZc=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=F8hJc0I9DNhB/BT/yzOJjM8H8sVJBZ/dY/1JUUypoCwa9W8SpHRr4/VdbPllWSYlW mYd1pBg96peWK5ykzHeo0JBhNUpAxqxOs8IJcTU1QeT/ZKkHuV+zX1W1ltFIADHAFM neB5o/aax8TZ3kwfh4e1wnTKo6pxbhhtJRv15GjU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobe-jhalfs ([188.109.168.129]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MORAU-1kpjrc3Ure-00Ps5i; Mon, 12 Oct 2020 19:21:10 +0200 In-Reply-To: <83lfgb2yss.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 12 Oct 2020 19:29:07 +0300") X-Provags-ID: V03:K1:qh5E9Pao8b1z3cpstita8b4pR7DCAyCaYRbxpW/GvNK8yVWHvID g5zZiI1dFzdtZdUnYWheMUEtD3Gz0+3FCYVLp6qHx1uulDscy0rJPxctKazpmoD+IfJ4sFm 6kXhBGYEv6lO7YJBxEkUNDTTwNu9+ZiMh8OCPS+AlWzywGTev70nZYuPDdAoA4hDdU8yhmx dm1/dAtkoZAyt645F0orA== X-UI-Out-Filterresults: notjunk:1;V03:K0:0rUNjWCXAgk=:WIosAqVu3HsCrd6N0ty008 4fWkpDOXZJ/iY3LpX4b+2swz19YvzD2/2TQU2O/w4rjSBNlbZqUMWa1NKtUdS7y6lWY8DJ8xe 4VPufvDqfnXLGD4kjIME9snbbANrVLxkWwCBH0S6+VFjZxeCfIcYdoFokiNthNEODc2c7OXgs Xq/24pSnMW31P0siiSHzfiUhgv6wdIkmeAqtIwzqjhL66k6kFN1zPZlr4jPSHlxHBD2hqZLIA 1Pl4oA6WM2989XVHQK1maU9AmQUqZoSfoUNvY3+jUBXhVdWKwcw/NkWQpkiATqKyzN74G6PJC AI9k9I96BsN9E0ny3V80tizzGKGgQbGRZaq59nERxR/6gROcjk9dSWLndLKzuHyX47iGGUxQh WYnSly0+xSHZfFnAYrqxH7z6m3jbPA/ifmJMTyUQf2egLv7ddWSOqQXA5+Byq9KLfMxkA5jDz wuL0gYZs1TRWdqnRvR9lTAQAvMHVDbFI2nN0sVH98S/B2i1OpsMpAcX1DbwZWqJhnXeqhivrq pHtG+rOJz3w94Bh6vhy+aWtNgs2DxdZ3/kvOJitUb7c8he7/yT68sqZ839JPQyAC+LG14Y6LG UxTheE8482Pkr2mu5yFXpkt6Ve3FAZmUOUUv0213Qb3s5qciG+gqdALtvxgWPhQMzD4JI5rIv Y0v/73q+qZT3FFol/8kBUwAaLJZJy9pdblVQDdVrRoojnvfDd/6tYAMUNNqXB7RK7/+LGlyp+ Rnmg31QWv8MFdOciMo60YiyDD85diEBUkwW9V0ibJB8zOKElY3yaD2IdPwdvWq5CQE2bM+bU X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190344 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, 12 Oct 2020 19:29:07 +0300 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: Stephen Berman , jidanni@jidanni.org, >> 43941@debbugs.gnu.org >> Date: Mon, 12 Oct 2020 18:17:41 +0200 >>=20 >> >> But the face does not change if `(' is used instead of `=EF=BC=88', e= .g. copy >> >> the following two lines into a buffer and type `M-x html-mode' (or `M= -x >> >> mhtml-mode', the face change appears in both): >> > >> > So which of them is a bug? >>=20 >> In the context of the OP it seems clear that string face is wrong. So >> in my simpler example, that means the display of the second line >> containing FULLWIDTH LEFT PARENTHESIS is buggy. > > Do the ASCII parentheses have some syntactic significance in this > context, then? If not, why do the parentheses affect the meaning of > the apostrophe? It seems they do have some syntactic significance, since the following patch prevents string face in the examples with FULLWIDTH LEFT PARENTHESIS: --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Description: sgml-mode.el patch diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index f3d8695e24..92a2215ed7 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -193,7 +193,7 @@ sgml-mode-syntax-table =20 (defconst sgml-tag-syntax-table (let ((table (sgml-make-syntax-table sgml-specials))) - (dolist (char '(?\( ?\) ?\{ ?\} ?\[ ?\] ?$ ?% ?& ?* ?+ ?/)) + (dolist (char '(?\( ?\) ?\{ ?\} ?\[ ?\] ?$ ?% ?& ?* ?+ ?/ ?=EF=BC=88)) (modify-syntax-entry char "." table)) (unless (memq ?' sgml-specials) ;; Avoid that skipping a tag backwards skips any "'" prefixing it. --=-=-= Content-Type: text/plain If this is the right approach, then all such characters would have to be added, or is there a better alternative? Steve Berman --=-=-=--