bug#50236: 27.2; electric-pair-mode is inconvenient in comint
Ihor Radchenko <[email protected]>
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <87o6fcagw7.fsf@localhost> |
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. I am wondering if it could somehow be done on syntax-ppss level. >> 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. +1 -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>