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: Sat, 22 Dec 2018 12:34:09 -0500 Message-ID: References: <20181221134829.29135.qmail@mail.muc.de> <20181221215042.GC16032@ACM> Reply-To: bea@klebe.blog NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000015d04c057d9fc63b" X-Trace: blaine.gmane.org 1545499992 5855 195.159.176.226 (22 Dec 2018 17:33:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Dec 2018 17:33:12 +0000 (UTC) Cc: Alan Mackenzie , bea@klebe.blog, 33794@debbugs.gnu.org, =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 22 18:33: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 1gal99-0001NW-Jw for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Dec 2018 18:33:07 +0100 Original-Received: from localhost ([::1]:43545 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1galBG-0006b3-Ae for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Dec 2018 12:35:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1galB8-0006Yv-UD for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2018 12:35:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1galB8-0005FS-17 for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2018 12:35:10 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55939) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1galB0-00054O-Oa; Sat, 22 Dec 2018 12:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1galB0-00054v-KU; Sat, 22 Dec 2018 12:35: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 17:35: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.154550006819469 (code B ref 33794); Sat, 22 Dec 2018 17:35:02 +0000 Original-Received: (at 33794) by debbugs.gnu.org; 22 Dec 2018 17:34:28 +0000 Original-Received: from localhost ([127.0.0.1]:60197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1galAR-00053x-Kh for submit@debbugs.gnu.org; Sat, 22 Dec 2018 12:34:27 -0500 Original-Received: from mail-oi1-f182.google.com ([209.85.167.182]:36626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1galAQ-00053i-3z for 33794@debbugs.gnu.org; Sat, 22 Dec 2018 12:34:26 -0500 Original-Received: by mail-oi1-f182.google.com with SMTP id x23so7335157oix.3 for <33794@debbugs.gnu.org>; Sat, 22 Dec 2018 09:34:26 -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=wtPExjvmSrfWnrOv3HWSeoEwilDYIOU0Js1arRdoq+w=; b=Yal7JTXA++N7/19JfUPwz2CEbOumflf6HiLMIw7oHzVySDwr9x2ay17g3G0e6xA0Fm 4RYwT1/6Ty9lZxGe5tpJ6Y4j6tpIMKjmdMxg1KJ3DuP3nXrRYptgM1pUx6+yX74RH4nE BI62LGkVkTYayO2QZOUO9BnfzBhRsykg/KPOsO/N9VJR4O5RtQHzfwbcH05o/A/phEwY zhYvXjX0XM6+9xgbSkSwrJOlnH4zwc7H6SjdSn2wAfjW0/Sv8c0T0G5alivQkVYd2CNW FmGZsA0ihZxuhXjU6sFtirTP6t3uCd+F6BBML6oOT0gV20ZmsfvseqCSMeWtmfwlAf3O RIlA== 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=wtPExjvmSrfWnrOv3HWSeoEwilDYIOU0Js1arRdoq+w=; b=dn7lp4INylnK2/dTX85ZhJ7zprX/WvIEfX6q9P+mCbcBz08068Y/uFzZON+fP+lNqR zvqn9oRtRqXFXVuryavCCbekpESgCgFYsDXuIAL5Oj+ULk0YxjA6f/f/Ffldq1hO7UVH ts+fuUzhwnV+ws0kj59ZPZM3HfJQMqkRAs7w1/BRzH1bfVXMeQlCVwjfdGPByY0V1ZgX AUpWrnjrIswJragCjQmWatm7/n67mxomvyfDAodlsyZAFQGhCxK32uHqZwQ2F5yMiMQD jI2v6dZWaqkiZmKAFW3ba/h/xcaE027lSwzPPb/a6bD6EU+wkeFbikqS0ni5DqzJhV3f ChCA== X-Gm-Message-State: AA+aEWZDve4ka+DjNnjAxh/4zarVqcCgLNiH3zQSvkkl/CFm6DBhssHl 0xFc/OtJ8ljSyKdIc6rmPZdqObsEIoc3DdcXNvE= X-Google-Smtp-Source: AFSGD/WAW0GjykyVn9XkUgox8RUoG+vbPhsy5t5RQH+C68apKGSkLibrGDzuB/6Kz2NpgF5iRt9bEbjJ9lDpHHetjcU= X-Received: by 2002:aca:4ed8:: with SMTP id c207mr4513040oib.276.1545500060141; Sat, 22 Dec 2018 09:34:20 -0800 (PST) In-Reply-To: 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:153750 Archived-At: --00000000000015d04c057d9fc63b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Well, in that case, I am flattered that my opinion is given much weight in this. What I will say is that it seems like the first order of business is to disambiguate what has which responsibilities in this case, and where the line falls between major modes, electric-layout, and electric-pair. It seems like this area of the electric modes is suffering from a bit of fragmentation as well as differing perspectives on what constitutes =E2=80=9Celectric=E2=80=9D behavior. Things such as c-toggle-auto-newline, = for example, almost seem in this case that they might be better delegated to electric-layout-mode, with cc-mode specifying different electric-layout constraints for its different formatting styles. It seems this is close to what Jo=C3=A3o was suggesting? And I suspect what Alan disagrees with? I apologize for any misunderstanding. On Sat, Dec 22, 2018 at 12:12 PM Stefan Monnier wrote: > > hear about it, and your quick hack will start causing unexpected behavi= or > > that I will then have to fix myself down the line. Indeed, I have oft > mused > > I believe there's a misunderstand here: his quick hack is intended to > figure out how to provide a long term solution. IOW he's not proposing > it as a solution for you, but is rather asking you to help us write > a long term fix by testing design points. > > > Stefan > --00000000000015d04c057d9fc63b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Well, in that case, I am flattered that my opinion i= s given much weight in this. What I will say is that it seems like the firs= t order of business is to disambiguate what has which responsibilities in t= his case, and where the line falls between major modes, electric-layout, an= d electric-pair. It seems like this area of the electric modes is suffering= from a bit of fragmentation as well as differing perspectives on what cons= titutes =E2=80=9Celectric=E2=80=9D behavior. Things such as c-toggle-auto-n= ewline, for example, almost seem in this case that they might be better del= egated to electric-layout-mode, with cc-mode specifying different electric-= layout constraints for its different formatting styles. It seems this is cl= ose to what Jo=C3=A3o was suggesting? And I suspect what Alan disagrees wit= h? I apologize for any misunderstanding.=C2=A0

On Sat, Dec 22, 2018 at 12:12 PM Stefan= Monnier <monnier@iro.umontr= eal.ca> wrote:
> hear abo= ut it, and your quick hack will start causing unexpected behavior
> that I will then have to fix myself down the line. Indeed, I have oft = mused

I believe there's a misunderstand here: his quick hack is intended to figure out how to provide a long term solution.=C2=A0 IOW he's not prop= osing
it as a solution for you, but is rather asking you to help us write
a long term fix by testing design points.


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan
--00000000000015d04c057d9fc63b--