From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode Date: Sat, 22 Dec 2018 22:55:32 +0000 Message-ID: <87sgypmasb.fsf@gmail.com> References: <20181221134829.29135.qmail@mail.muc.de> <20181221215042.GC16032@ACM> <87woo16yzp.fsf@gmail.com> <20181222221540.GC3935@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1545519252 24846 195.159.176.226 (22 Dec 2018 22:54:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Dec 2018 22:54:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Beatrix Klebe , bea@klebe.blog, Stefan Monnier , 33794@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 22 23:54:08 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 1gaq9n-0006Kx-SW for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Dec 2018 23:54:08 +0100 Original-Received: from localhost ([::1]:40714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaqBu-00053A-Mj for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Dec 2018 17:56:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaqBk-00051O-Lf for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2018 17:56:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaqBj-0007sC-Qy for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2018 17:56:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gaqBe-0007m9-Km; Sat, 22 Dec 2018 17:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gaqBe-0006T0-Ie; Sat, 22 Dec 2018 17:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 22 Dec 2018 22:56: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.154551934524835 (code B ref 33794); Sat, 22 Dec 2018 22:56:02 +0000 Original-Received: (at 33794) by debbugs.gnu.org; 22 Dec 2018 22:55:45 +0000 Original-Received: from localhost ([127.0.0.1]:60306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaqBN-0006SU-AX for submit@debbugs.gnu.org; Sat, 22 Dec 2018 17:55:45 -0500 Original-Received: from mail-wr1-f48.google.com ([209.85.221.48]:46765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaqBJ-0006SF-Rz for 33794@debbugs.gnu.org; Sat, 22 Dec 2018 17:55:42 -0500 Original-Received: by mail-wr1-f48.google.com with SMTP id l9so8587858wrt.13 for <33794@debbugs.gnu.org>; Sat, 22 Dec 2018 14:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=jvxUcidETivGrU+NsneKPLE8HJb1yvqnTFQffu1QZPE=; b=Nr3GxFfA+rbAnhuGifSG1WNE8ytK0Dnx2INiHatIFnXS/Mv117krS2U/JnGvDS1kW3 +41jJ2IRCff5Oz2jG5yU8+zcgwP6DBEvrCprON9RSeUzMSerqi/tr/QOzktZaw/plXm6 aEdmso4qC2fQkznc/USuDSLedu+poWXFk1lgoUiwgggtgbpiw2H3zp9uU7R2oznMebmR B/43weuBHcqie+l06Wc0bUpZ4qntxNOG76wBGvyfCGQLs3BzoRpgHu7PUn57JaOGe0l6 DBdOlnQxHCC8rBgTC+Rb+hPuubO3h0FZLdqlc/piCSOPIlJBZUiw4M0dPDAKCwuJp3eo yCfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=jvxUcidETivGrU+NsneKPLE8HJb1yvqnTFQffu1QZPE=; b=tPNEvkLk8fZxo8UYJC1DmGnjpnruxfmKNRY1WUeOhy/wd9lxSHkFG97FYQa88VmZo6 0cRFrlyX8iCel7gGlzzU+NbWG+Fxp9WXtbwYCX18uRA51jmWCswyJM0eZOctI5hrO4uz uXtyjkiFzpumjIQqwIPwoVpan2DCVvbd83XhyDVByDeu5W8AWYaFRQLVX3YG+P3Nk/RM ZnD+2MB9ebIDnphWa5xObMJrb6N149yK0Dq1Gbw10f/sS289wMvO6PX6Qtfj0wwhbDb1 ibYoS+8qCV7nsof5zWJGXJNsZp/576eT14HwtwtD3851gyqyP6IFjRpbsKK90YrIfi9H F8ig== X-Gm-Message-State: AJcUukc3piiWtTXz8d5WQtzaOhA0IaxVZogGA+46XbfeqmciY2XPmAS7 g1X8DjtnSrsyqyEG1ylBISwDWo9u X-Google-Smtp-Source: ALg8bN56s1H1xKkEcpSjz4nCLj8QpgCgElZTw0ORuPqF/JtB2XK1WcDoNW4i150Z5UgjJ4ipL+sdcw== X-Received: by 2002:a5d:410e:: with SMTP id l14mr7220469wrp.61.1545519335822; Sat, 22 Dec 2018 14:55:35 -0800 (PST) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id t70sm21818151wmd.36.2018.12.22.14.55.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Dec 2018 14:55:34 -0800 (PST) In-Reply-To: <20181222221540.GC3935@ACM> (Alan Mackenzie's message of "Sat, 22 Dec 2018 22:15:40 +0000") 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:153762 Archived-At: Alan Mackenzie writes: > Right now, Jo=C3=A3o's direction of travel seems to be to cement > electric-pair-mode's unusability in modes like CC Mode, of which there > are quite a few. I hope I've misunderstood this and I'm mistaken. You are. In fact, I'm coming up with alternatives so that electric-pair-mode works with CC-Mode, even if the user or some other mode customizes it to not use c-electric-{brace,paren}. You may say that I am not working actively to make e-p-m work with c-toggle-auto-newline, which *in my opinion* is a part of CC-mode that could and should someday be fulfilled by electric-layout-mode. That is 100% true. But I am not preventing anyone from taking on that task, or even suggesting it's trivial or very hard. I just don't know, and I have no interest in studying this alternative. That is quite different from "cementing an unusability".Have a look at my recent commits in scratch/fix-33794-extend-electric-layout-mode and you will see that I have done 0 changes to e-p-m. Also, can you once and for all describe the "unusabilities" in other modes you keep talking about??? >> Yes, Alan disagrees with this. In his view, electric- modes are abusing >> the semantics of post-self-insert-hook. Well, at least in my view of >> his views :-) > > Please don't misrepresent me like that. Really, I didn't. But OK, I will think thrice before writing "Alan thinks" sentences. > The point is that the electric-... modes abuse not so much the > post-self-insert-hook (although they do), So, in reality I didn't misrepresent you. > but they totally break self-insert-command. You have had several > hours to contest this, but by your silence appear to have accepted it. How can I contest or accept that which I have no opinion of? I'm not an expert in the teleology of self-insert-command! Find someone who is to discuss this! Frankly: "my silence"... I'm not taking that bait, OK? Really, Alan, please please understand that I am only trying to make electric-layout-mode work a bit better, and not even touching any of its basic functioning vis-a-vis self-insert-command. Jo=C3=A3o