bug#81551: 31.0.91; Electric-pair-mode should support Java's text blocks in java-mode, java-ts-mode

Sean Whitton <[email protected]> Wed, 05 Aug 2026 14:12:30 +0100
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
Rudi Schlatte [05/Aug  3:06pm +02] wrote:
> Something like this?  Code adapted from python.el.

Ah, just a sec, we are adapting code from a non-tree sitter mode to a
tree sitter mode, which is probably not right.  We should probably be
doing this using data from the tree sitter parser.

> (I still think adding (""" . """) to `electric-pair-pairs’ would be
> more satisfying ;) )

Possibly yes, but we'd need one of the electric-pair-mode people to
review it.  João, does this seem likely to be okay to you?

-- 
Sean Whitton