Subject: Re: bug#78053: [PATCH] Support strings for electric-pairs.

From: Eli Zaretskii <[email-masked]>
Date: Mon, 16 Jun 2025 12:20:13 +0300

> From: Rudolf Schlatte <[email-masked]>
> Date: Mon, 16 Jun 2025 07:46:25 +0200
> 
> > Thus, if electric-pair-pairs is set like this:
> > (setq electric-pair-pairs '(("/*" " */" t)))
> >
> > After the pair start was typed it expands to this:
> > /* | */
> >    ^ cursor
> 
> Instead of hard-coding the extra space, how about allowing the third
> element to also be a string, with that string being inserted after the
> pair start?  In java-mode, I'd then add an element ("\"\"\"" "\"\"\""
> "\n") since Java-style multi-line strings start with a mandatory
> linebreak after the opening triple-quote.

If that the Java style, then comment-start should include the newline,
no?