From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Beatrix Klebe Newsgroups: gmane.emacs.bugs Subject: bug#33794: 26.1; electric-pair-mode breaks auto-newline minor mode of cc-mode Date: Fri, 21 Dec 2018 23:41:38 -0500 Message-ID: References: <20181221134829.29135.qmail@mail.muc.de> <87tvj68j15.fsf@gmail.com> <87pntu8fx8.fsf@gmail.com> <20181222024143.GA3985@ACM> <87h8f68cu0.fsf@gmail.com> Reply-To: bea@klebe.blog NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006091b3057d94fb12" X-Trace: blaine.gmane.org 1545453611 6074 195.159.176.226 (22 Dec 2018 04:40:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Dec 2018 04:40:11 +0000 (UTC) Cc: Alan Mackenzie , bea@klebe.blog, 33794@debbugs.gnu.org, Stefan Monnier 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 Sat Dec 22 05:40:06 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 1gaZ54-0001S1-7k for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Dec 2018 05:40:06 +0100 Original-Received: from localhost ([::1]:49757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaZ7A-0007Wk-RM for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Dec 2018 23:42:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaZ72-0007WT-UO for bug-gnu-emacs@gnu.org; Fri, 21 Dec 2018 23:42:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaZ6x-0003uB-5i for bug-gnu-emacs@gnu.org; Fri, 21 Dec 2018 23:42:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54788) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gaZ6w-0003tS-9p; Fri, 21 Dec 2018 23:42:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gaZ6w-0005BI-3A; Fri, 21 Dec 2018 23:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Beatrix Klebe Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 22 Dec 2018 04:42: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.154545371819906 (code B ref 33794); Sat, 22 Dec 2018 04:42:02 +0000 Original-Received: (at 33794) by debbugs.gnu.org; 22 Dec 2018 04:41:58 +0000 Original-Received: from localhost ([127.0.0.1]:59046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaZ6s-0005Az-1a for submit@debbugs.gnu.org; Fri, 21 Dec 2018 23:41:58 -0500 Original-Received: from mail-ot1-f41.google.com ([209.85.210.41]:35055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaZ6p-0005Aj-FF for 33794@debbugs.gnu.org; Fri, 21 Dec 2018 23:41:56 -0500 Original-Received: by mail-ot1-f41.google.com with SMTP id 81so7006145otj.2 for <33794@debbugs.gnu.org>; Fri, 21 Dec 2018 20:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=2UdKX5NRSKiHOlrWYWmZfrf+BkEBTXWnERrcjkjKTH8=; b=NlM46IWSNH32QJrXG8fJMUEQ1l2tt/oKrt2RODMZM4hgsFgjZvdZUfUePuR2iEH3mD HCeWj/KepugyuQqccmXdYthyelMFv/TtEA/94ykAWx2h7jTAO4wlVeM0Jotq8/7K1aJP rOkveQ4wMnfJnuRLv1zfCYskEEa2VHijgpTf7Zou6Cw6mN7ITy47WRehy3OyLQmjnH/c RxDTuiEb8HznPcCWKOEIDbLjq98FEtbOkNwtcLktOZARJ7KRVcl6WZukgVJyAlQqMiaa hbvXLhbj2/Nsy8yrMTk1JVrVfXr7DrR1wFVHQBsOm/lbXgbzAbh8k2fQ6sv1TBL6hx7b uZxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=2UdKX5NRSKiHOlrWYWmZfrf+BkEBTXWnERrcjkjKTH8=; b=GGaFhqQPS7nJ7R1TnnXS2pPukASALueefVb+YOlqc4WBFm3xJXgUvWngQFrRVvakDU IrPTBmD4JZ19op89FQl6bbVJ84cPTAZukHBTRD6sqZjqeqSJ+GBnhAgJmDX7HK0kGCGL C0be8xsVrAKBTub4SyoW8qMQl+onjwXzaoZKnCoNAdt7C3rjEfDspaQk2wlgoA1WNkjQ Yv6Xc/IRUItp3HNE8geQDzxUJ7f8ItS7TPzK10BTvXFYVLD8y2gNSG4aSbKgi5JkK16X FiTlgHvRhyzNyQH21NSRyqJja7TgXWE7QQ8JE1ewYFFxKQm+CIgX6HYSgtQVomGWvwG3 JHXg== X-Gm-Message-State: AJcUukeGLt6TImQqFL78W01E+gLb1QfVhleifbpIGZX8zz0a+mw1Us88 XxXNLwUmlxa8QofFEuOTCyrD/2bxNzYl1WXl13w= X-Google-Smtp-Source: ALg8bN57TFqaAom95V/i5sO1kFGVpfw0GdvLU7sX8y+cKk+GDHrEdkoV9Nofwf6cWpQxdfpPm1ZvrZNgFwr5gbrrLfw= X-Received: by 2002:a9d:77d4:: with SMTP id w20mr3379799otl.196.1545453709593; Fri, 21 Dec 2018 20:41:49 -0800 (PST) In-Reply-To: <87h8f68cu0.fsf@gmail.com> 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:153714 Archived-At: --0000000000006091b3057d94fb12 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I didn=E2=80=99t intend to kick the hornet=E2=80=99s nest of ideological fa= ctions here, I was honestly just wondering if this was actually expected behavior of these two modes together and if not if the fix was trivial. The answer seems to be that it is indeed a bug and the fix is non-trivial, and furthermore while I appreciate attempts to hotfix it, those are not solutions of the quality I was expecting, (I encountered those already while doing my own research before I filed this bug report and I found them unsatisfactory both then and now) and furthermore I feel like I should be open in stating that I feel somewhat condescended to. I know what c-toggle-auto-newline is, I also know that functions prefixed with =E2=80=9Ctoggle=E2=80=9D are funct= ions that toggle a mode or setting internally, in this case a minor mode called auto-newline ( https://www.gnu.org/software/emacs/manual/html_node/ccmode/Auto_002dnewline= s.html) I was about five minutes away from diving into the source of these two packages to fix it myself, as I have spent probably 10 hours reasearching this problem at this point. I=E2=80=99m sorry if I misunderstood something,= I was mainly looking for clarification that what I was experiencing was a bug, and it is beginning to seem like there is none to be had here. My apologies. On Fri, Dec 21, 2018 at 10:22 PM Jo=C3=A3o T=C3=A1vora wrote: > Alan Mackenzie writes: > > > Hello, Beatrix. > > > > As maintainer of CC Mode, I earnestly recommend you NOT to follow Jo=C3= =A3o's > > suggestion. It will not work, and will waste your time. > > What, exactly, will not work? > > > Even if it appears to work, you will end up picking out bugs for an > > indeterminate period. > > What bugs? If you know of any, it would be good to report them, right? > > > Basically, electric-pair-mode as it is currently built is incompatible > > with CC Mode, as I have pointed out here, albeit somewhat > > undiplomatically. > > > > I suggest you do nothing until tempers amongst Emacs developers have > > cooled down, and hopefully a genuine solution to the bug has been worke= d > > out and implemented. > > If you don't like electric-layout-mode, don't use it. I'm trying to > develop an alternative to c-toggle-auto-newline within the > electric-*-mode frame. It's an experiment which I don't even know if > Stefan will agree to, but it seems to work. If Beatrix wants to > cooperate, why shouldn't she? > > I'm not asking you to nuke c-toggle-auto-newline or anything, but should > we all be forced to use it? I don't think it's sensible in a free > software project, Alan (and my temper is quite cool when saying this > :-)) > > Again, I said I don't have anything against making eletric-pair-mode > compatible with c-toggle-auto-newline if someone comes up with a good > solution that doesn't break e-p-m for other modes. I will not invest > time in looking into that solution, but you or someone else may, of > course. > > In the meantime let people explore alternatives, right? > > Jo=C3=A3o > --0000000000006091b3057d94fb12 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I didn=E2=80=99t intend to kick the hornet=E2=80=99s= nest of ideological factions here, I was honestly just wondering if this w= as actually expected behavior of these two modes together and if not if the= fix was trivial. The answer seems to be that it is indeed a bug and the fi= x is non-trivial, and furthermore while I appreciate attempts to hotfix it,= those are not solutions of the quality I was expecting, (I encountered tho= se already while doing my own research before I filed this bug report and I= found them unsatisfactory both then and now) and furthermore I feel like I= should be open in stating that I feel somewhat condescended to. I know wha= t c-toggle-auto-newline is, I also know that functions prefixed with =E2=80= =9Ctoggle=E2=80=9D are functions that toggle a mode or setting internally, = in this case a minor mode called auto-newline (https://w= ww.gnu.org/software/emacs/manual/html_node/ccmode/Auto_002dnewlines.html) I was about five minutes away from diving into the source of these two p= ackages to fix it myself, as I have spent probably 10 hours reasearching th= is problem at this point. I=E2=80=99m sorry if I misunderstood something, I= was mainly looking for clarification that what I was experiencing was a bu= g, and it is beginning to seem like there is none to be had here. My apolog= ies.=C2=A0

Alan Mackenzie <acm@muc.de> writes:

> Hello, Beatrix.
>
> As maintainer of CC Mode, I earnestly recommend you NOT to follow Jo= =C3=A3o's
> suggestion.=C2=A0 It will not work, and will waste your time.

What, exactly, will not work?

> Even if it appears to work, you will end up picking out bugs for an > indeterminate period.

What bugs?=C2=A0 If you know of any, it would be good to report them, right= ?

> Basically, electric-pair-mode as it is currently built is incompatible=
> with CC Mode, as I have pointed out here, albeit somewhat
> undiplomatically.
>
> I suggest you do nothing until tempers amongst Emacs developers have > cooled down, and hopefully a genuine solution to the bug has been work= ed
> out and implemented.

If you don't like electric-layout-mode, don't use it.=C2=A0 I'm= trying to
develop an alternative to c-toggle-auto-newline within the
electric-*-mode frame.=C2=A0 It's an experiment which I don't even = know if
Stefan will agree to, but it seems to work.=C2=A0 If Beatrix wants to
cooperate, why shouldn't she?

I'm not asking you to nuke c-toggle-auto-newline or anything, but shoul= d
we all be forced to use it?=C2=A0 I don't think it's sensible in a = free
software project, Alan (and my temper is quite cool when saying this
:-))

Again, I said I don't have anything against making eletric-pair-mode compatible with c-toggle-auto-newline if someone comes up with a good
solution that doesn't break e-p-m for other modes.=C2=A0 I will not inv= est
time in looking into that solution, but you or someone else may, of
course.

In the meantime let people explore alternatives, right?

Jo=C3=A3o
--0000000000006091b3057d94fb12--