GNU bug report logs -
#50538
[PATCH] 28.0.50; electric-pair-mode fails to pair double quotes in some cases in CC mode
Previous Next
Reported by: Jim Porter <jporterbugs <at> gmail.com>
Date: Sun, 12 Sep 2021 03:59:02 UTC
Severity: normal
Tags: patch
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Jim Porter <jporterbugs <at> gmail.com>
> Cc: 50538 <at> debbugs.gnu.org
> Date: Wed, 15 Sep 2021 15:17:23 -0700
>
> On 9/11/2021 8:58 PM, Jim Porter wrote:
> > (Note: I've just updated my copyright assignment information, but
> > haven't received confirmation that everything is in order, so this might
> > need to wait until that's done for it to merge.)
>
> I've gotten confirmation that my copyright assignment info is all
> up-to-date, so once this patch passes muster, it should be ok to merge it.
Your copyright assignment is on file, so we are good in that
department.
> On 9/12/2021 11:05 AM, Jim Porter wrote:
> > Note however that this solution isn't perfect: it means a user's custom
> > `electric-pair-inhibit-predicate' can only inhibit *more* than CC mode's
> > default behavior, not less. I think that's a reasonable compromise
> > though, and users who want more direct control can set
> > `electric-pair-inhibit-predicate' inside `c-mode-common-hook'. A
> > "perfect" solution here would probably require adding new customization
> > points to `electric-pair-mode' (e.g. a way for major modes to override
> > how the syntax is analyzed), and I'm not sure the added complexity would
> > be worth it, especially since this code is already a bit tricky.
>
> I'm not sure if someone has a better idea for how to do things, but for
> my config[1], the patch works well and makes CC modes behave the same as
> other programming modes. In my opinion, the worst thing
> `electric-pair-mode' can do is to behave inconsistently, since that
> forces the user to pay close attention to something that should be
> almost invisible/automatic.
I don't use this minor mode, so I don't think my opinion on this
matters much. I will defer to Lars and Alan here.
This bug report was last modified 3 years and 248 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.