Subject: Re: bug#31155: 26.1; electric-pair-mode sometimes inserts extra ) in process buffers

From: Noam Postavsky <[email-masked]>
Date: Wed, 18 Apr 2018 21:12:23 -0400

tags 31155 + moreinfo
quit

Alex Branham <[email-masked]> writes:

> That might be part of the problem, but this also happens sometimes even
> when I've just started R. R prints out a little message when it starts,
> but doesn't have unmatched parens.

Hmm, maybe add some tracing to narrow down the problem a bit?

    (dolist (fun '(electric-pair--balance-info
                   electric-pair-skip-if-helps-balance
                   electric-pair-syntax-info
                   electric-pair-default-skip-self))
      (trace-function-background fun))

Then take a look at the *trace-output* buffer after you manage to
reproduce the problem.