GNU bug report logs - #54195
27.1; electric-pair-mode assertion failure in HTML+JS mode

Previous Next

Package: emacs;

Reported by: Jeff Chase <jeff.chase <at> gmail.com>

Date: Mon, 28 Feb 2022 08:16:07 UTC

Severity: normal

Found in version 27.1

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jeff Chase <jeff.chase <at> gmail.com>
Cc: 54195 <at> debbugs.gnu.org
Subject: Re: bug#54195: 27.1; electric-pair-mode assertion failure in
 HTML+JS mode
Date: Mon, 28 Feb 2022 10:30:42 +0100
Jeff Chase <jeff.chase <at> gmail.com> writes:

> 1) open a new file named 'test.html'
> 2) enable electric-pair-mode
> 3) Add
>
>     <script>
>
>     </script>
>
> 4) When mark is between script tags should be in HTML+JS mode
> 5) Enter `foo()` on the line between script tags
>
> The closing paren should overwrite the auto closing paren but instead
> a new one is added and the minibuffer shows an error:
>
>     Assertion failed: (>= (cadr sgml--syntax-propertize-ppss) 0)
>
> This does not happen under the other major modes I tried nor in HTML+
> mode outside of the script tags.

I've now fixed this in Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 141 days ago.

Previous Next


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