From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#49629: 27.2; electric-pair-mode doesn't work for angle brackets in HTML file Date: Fri, 23 Jul 2021 01:34:52 +0200 Message-ID: <87im11gbxf.fsf_-_@gnus.org> References: <801r7vgoxm.fsf@felesatra.moe> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2887"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49629@debbugs.gnu.org To: Allen Li Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 23 01:36:10 2021 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 1m6iEc-0000Yi-RS for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Jul 2021 01:36:10 +0200 Original-Received: from localhost ([::1]:52048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6iEb-0002g6-Sw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 19:36:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6iEU-0002fG-0B for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 19:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6iET-00047n-NV for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 19:36:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m6iET-0001IQ-Lk for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 19:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jul 2021 23:36:01 +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.16269969054912 (code B ref 49629); Thu, 22 Jul 2021 23:36:01 +0000 Original-Received: (at 49629) by debbugs.gnu.org; 22 Jul 2021 23:35:05 +0000 Original-Received: from localhost ([127.0.0.1]:41850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6iDZ-0001H9-3h for submit@debbugs.gnu.org; Thu, 22 Jul 2021 19:35:05 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:60438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6iDW-0001Gb-9X for 49629@debbugs.gnu.org; Thu, 22 Jul 2021 19:35:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/80jYltxpjRx/1VtBfiJramDOvR3E0J/2KRdVyPqT1w=; b=trZri2/tzxNBZ+Qgu+aNlFDrJB JMzriPK/dx1T2waNfVWAkKZ+KLIW8/1tsjHkB8A7BccYUjntejoxPKUv0G4Xj1XNh/upM1d/DqS1D Ull+gLEMwxdI/cd8LwM8+EjRec9gTe6MnhT8oPoB3YH74tp724iAh81XrpavqcmwUcaw=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6iDN-00005m-38; Fri, 23 Jul 2021 01:34:55 +0200 X-Now-Playing: Pigface's _Fook_: "I Can Do No Wrong" In-Reply-To: (Allen Li's message of "Thu, 22 Jul 2021 07:03:29 +0000") 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:210552 Archived-At: Allen Li writes: > What I've found so far is that using Edebug to step through > electric-pair-skip-if-helps-balance, if I manually step past > (delete-char -1) and then press g (edebug-go-mode) then the bug > disappears. Pressing g before stepping past (delete-char -1) causes > the bug. If I remember correctly, electric-pair-mode works by doing a lot of magic in `post-self-insert-hook'? In my experience, trying to edebug through code when that hook is running often leads to peculiar results. That is, you have to debug via other means when trying to see what's actually happening here, I think. (I.e., adding `message's all over the place and other tedious things...) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no