Hi, yes - I meant `show-paren-mode'.  Not sure what I was thinking at the
time.
In the code for matlab.el, it is all about show-paren-* features it is
extending.

I poked around some more to see how to extend electric-pair-mode, and found
the defcustom `electric-pair-inhibit-predicate'.  I hacked together a
little thing that prevents the mode from pairing up a single quote after a
symbol, ie - when used as transpose.  The downside is it also disables the
user's selection, so not sure what to do about that.

Anyway, I attached it as a way to brainstorm what the right patterns are to
fix the original problem.

Eric

On Tue, Apr 26, 2022 at 2:30 AM Uwe Brauer <o...@mat.ucm.es> wrote:

> >>> "PM" == Peter Mao <peter....@gmail.com> writes:
>
> Hi all
> > hi Eric and John,
> > Thanks for your responses.  Eric -- did you mean `show-paren-mode`?  I
> > can't find any references to a `paren-mode` in melpa, elpa or emacs
> > (28.1).  I'll try it out if I can find it!
>
> I was wondering myself. I tend to believe that years ago there was some
> paren-mode package, but I cannot find it in my archives.
>
> Uwe Brauer
> _______________________________________________
> Matlab-emacs-discuss mailing list
> Matlab-emacs-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss
>

Attachment: matlab-elecp-patch
Description: Binary data

_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to