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]>
Ihor Radchenko <[email protected]> writes:

> João Távora <[email protected]> writes:
>
>>>> 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 
>
> Considering that it cares about fields, I do not see why the notion of
> limiting where the pairs are matched should not be generalized.

It does not care about fields yet either, but the idea is to make it so
yes.  Fields usually represents disconnected independent text production
(current input field in a shell is produced independently from the
output stream, the text in two separate input fields in a web page form
is probably unrelated, and same with code snippets).  But mainly the
reason it should care about fields is the first one in this bug report:
Comint.  It has long been an annoyance for comint-based REPLs and
shells.

E-p-m has never cared about paragraphs and neither has s-p-m or C-M-f or
many delimiter-based tools.  If you want all these things to stop
working across paragraphs, you should probably open a new discussion for
that.

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.