From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#49629: 27.2; electric-pair-mode doesn't work for angle brackets in HTML file Date: Mon, 27 Jun 2022 08:39:31 -0400 Message-ID: References: <801r7vgoxm.fsf@felesatra.moe> <87im11gbxf.fsf_-_@gnus.org> <8735rybg2f.fsf@gnus.org> <87tuk978gm.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7588"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 49629@debbugs.gnu.org, Noam Postavsky To: Allen Li Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 27 14:40:16 2022 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 1o5o2K-0001nc-1G for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 14:40:16 +0200 Original-Received: from localhost ([::1]:56682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5o2H-0002Gt-F6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Jun 2022 08:40:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5o26-0002GD-Qs for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 08:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5o26-0006qH-HR for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 08:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5o26-0007x6-C5 for bug-gnu-emacs@gnu.org; Mon, 27 Jun 2022 08:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Jun 2022 12:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49629 X-GNU-PR-Package: emacs Original-Received: via spool by 49629-submit@debbugs.gnu.org id=B49629.165633358330528 (code B ref 49629); Mon, 27 Jun 2022 12:40:02 +0000 Original-Received: (at 49629) by debbugs.gnu.org; 27 Jun 2022 12:39:43 +0000 Original-Received: from localhost ([127.0.0.1]:50252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5o1n-0007wJ-8K for submit@debbugs.gnu.org; Mon, 27 Jun 2022 08:39:43 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:40260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5o1l-0007w6-Dc for 49629@debbugs.gnu.org; Mon, 27 Jun 2022 08:39:41 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 82A05100182; Mon, 27 Jun 2022 08:39:35 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 130E8100134; Mon, 27 Jun 2022 08:39:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1656333574; bh=4K1Dx5vQFgAshmwX+YIIKPctIc4BHD/wUbIqVY0c784=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=RvNWHfr4nyq0prNM7vQQLcJaCqHFRouKeNfACFgjwTaiL47qHD7ZkWoZTABviOgyW en5lfFpTA8DKch80L6gXjOoxGy4z1878FtoB5niU1ia/REhskhbS+kE7iT75Dw+OEu SYerXvT6xzaQT49g63IjRxiu1sudG1PCxcAZ7L+E1WyC2Jd2N7p9qe38AbD7UOdKb+ IfgxuLd5ti+kqyPRBIfXg0VBBWX9okIR01wUCHbm3nn8yRbxYj+/1xzpjd77FYjLqZ iswX8iAW54sUPvwpAKfv1Z4KQnRmjarMZqqFx7GmuawdschSfktIVRenOyaQL44ZXg Sgx32WY7udbLA== Original-Received: from alfajor (smb-adp04.hotspot.hub-one.net [213.174.99.154]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 36BBA1201B3; Mon, 27 Jun 2022 08:39:33 -0400 (EDT) In-Reply-To: (Allen Li's message of "Sun, 26 Jun 2022 17:33:37 -0700") 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:235446 Archived-At: > FIrst, changing `syntax-propertize-function` from nil to `ignore` was wrong > IIUC. If the function is set, then it is wholly responsible for applying > syntax table. When set to nil the default behavior is used, but when set > to `ignore`, that should mean that no syntax is applied at all. In > practice, I don't know what behavior that causes. The two behave identically (IOW the "default behavior" is the same as that of `ignore`). > Second, since `electric-pair--with-uncached-syntax` appears to be used for > doing text-mode matching (as you've also observed), maybe we should > de-generalize it to do only that. I think that allows us to make some > simplifying assumptions about the state of the world. Sounds good. Stefan