bug#50236: 27.2; electric-pair-mode is inconvenient in comint

João Távora <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
Augusto Stoffel <[email protected]> writes:

> On Sat,  8 Aug 2026, Ihor Radchenko wrote:
>
>> Augusto Stoffel <[email protected]> writes:
>>
>>> I've added Ihor to the discussion since the issue affects Org mode as
>>> well (see my email of 22 Aug 2022 in this thread).  WDYT?
>>
>> Why not using paragraph boundaries in addition to fields?
>
> Interesting idea.  This makes a lot of sense for prose, but it would
> severely disrupt electric pair mode for code.

electic-pair-mode doesn't care about paragraph boundaries, so I don't
see 

> Even in Org mode, the right context to look for a matching delimiter
> would be the entire block when inside a code block,

I suppose so.

> otherwise the current paragraph.

No.  Currently, delimiters match accross paragaphs and that's a good
thing.  Think a number of paragraphs in quotes.

BTW, In general electric-pair-mode shold work exactly as show-paren-mode
does.  Any with-restriction fixes done to e-p-m should probably also
apply to s-p-m.

João
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.