From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode Date: Fri, 28 Dec 2018 12:44:18 +0000 Message-ID: <20181228124418.GA5845__26396.3042911657$1546001694$gmane$org@ACM> References: <20181221215042.GC16032@ACM> <87woo16yzp.fsf@gmail.com> <20181222221540.GC3935@ACM> <87sgypmasb.fsf@gmail.com> <20181223202143.GA6658@ACM> <87lg4fnctm.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1546001694 2951 195.159.176.226 (28 Dec 2018 12:54:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Dec 2018 12:54:54 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Beatrix Klebe , bea@klebe.blog, Stefan Monnier , 33794@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 28 13:54:49 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcrf7-0000ek-I4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Dec 2018 13:54:49 +0100 Original-Received: from localhost ([127.0.0.1]:58711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcrhE-0000kt-CB for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Dec 2018 07:57:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcrh6-0000eN-2P for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2018 07:56:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gcrdO-0005yb-VX for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2018 07:53:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gcrdO-0005xm-R7; Fri, 28 Dec 2018 07:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gcrdO-0007K0-F5; Fri, 28 Dec 2018 07:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 28 Dec 2018 12:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33794 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 33794-submit@debbugs.gnu.org id=B33794.154600154728097 (code B ref 33794); Fri, 28 Dec 2018 12:53:02 +0000 Original-Received: (at 33794) by debbugs.gnu.org; 28 Dec 2018 12:52:27 +0000 Original-Received: from localhost ([127.0.0.1]:39761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcrco-0007J7-VG for submit@debbugs.gnu.org; Fri, 28 Dec 2018 07:52:27 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:40473 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1gcrcm-0007Iy-EU for 33794@debbugs.gnu.org; Fri, 28 Dec 2018 07:52:25 -0500 Original-Received: (qmail 79722 invoked by uid 3782); 28 Dec 2018 12:52:22 -0000 Original-Received: from acm.muc.de (p2E5D5A7B.dip0.t-ipconnect.de [46.93.90.123]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 28 Dec 2018 13:52:20 +0100 Original-Received: (qmail 5941 invoked by uid 1000); 28 Dec 2018 12:44:18 -0000 Content-Disposition: inline In-Reply-To: <87lg4fnctm.fsf@gmail.com> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:153956 Archived-At: Hello, Joćo. On Sun, Dec 23, 2018 at 21:38:29 +0000, Joćo Tįvora wrote: > Alan Mackenzie writes: > > If I were to dig in to e-p-m, make fixes, and commit them, I suspect > > you would be somewhat annoyed. > If you propose changes to e-p-m that: > * don't break any (more) unit tests; > * don't introduce new interfaces to special case cc-mode; > * Stefan accepts, since the self-insert-command-hook part was his > responsibility entirely, (as I have tried to explain a million times.) > Then I don't see why I would be annoyed. > (You could of course come to the faint realization that maybe there is > the off-chance that there exists a glimmer of possibility that in a > remote part of the multiverse it is quite possible that a minute part > the problem lies in cc-mode. But no, that is preposterous! let us not > even consider that heresy! It's decades old after all, it MUST be > correct, forever and absolutely!) The problem we're dealing with is in the interface between CC Mode and electric-pair-mode. Naturally, both sides of this putative interface will need adapting. >From my point of view, what is missing from e-p-m is an interface usable by functions which call self-insert-command programmatically, as CC Mode does. A function to insert the matching character and otherwise process it. Or something like that, I haven't fully worked it out. Sadly, at the moment it's looking like the easiest way to fix bug #33794 would be to duplicate the functionality of electric-pair-mode inside CC Mode, as I've already done partially. I really don't want to do that, and you probably don't want me to do that either. [ .... ] > Joćo -- Alan Mackenzie (Nuremberg, Germany).