GNU bug report logs - #21275
24.5; Selection deleted with electric pair mode in cc mode

Previous Next

Packages: cc-mode, emacs;

Reported by: nljlistbox2 <at> gmail.com (N. Jackson)

Date: Sun, 16 Aug 2015 13:33:02 UTC

Severity: normal

Found in version 24.5

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


Message #31 received at 21275 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: Alan Mackenzie <acm <at> muc.de>, 21275 <at> debbugs.gnu.org,
 "N. Jackson" <nljlistbox2 <at> gmail.com>
Subject: Re: bug#21275: 24.5;
 Selection deleted with electric pair mode in cc mode
Date: Fri, 21 Aug 2015 09:42:38 -0400
> My point is that this workaround for electric-pair should have an
> "electric-pair" name, not a "delete-selection" name.  It is not something
> used by delete-selection.

No.  It's a feature of delete-selection (in the form of a hook).
Look at the code: it doesn't say anything about electric-pair.
This feature was added for electric-pair, indeed, but it's a feature of
delete-selection.

elec-pair.el has the other half of code (added to delete-selection's
hook), using the proper prefix.


        Stefan




This bug report was last modified 10 years and 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.