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 21:19:22 +0000 Message-ID: <87woo16yzp.fsf@gmail.com> References: <20181221134829.29135.qmail@mail.muc.de> <20181221215042.GC16032@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 1545513504 27937 195.159.176.226 (22 Dec 2018 21:18:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Dec 2018 21:18:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Alan Mackenzie , bea@klebe.blog, Stefan Monnier , 33794@debbugs.gnu.org To: Beatrix Klebe Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 22 22:18:19 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 1gaof4-00073Z-JO for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Dec 2018 22:18:18 +0100 Original-Received: from localhost ([::1]:60990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaoh6-0007sa-5O for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Dec 2018 16:20:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaogv-0007sN-E7 for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2018 16:20:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaogu-00065W-KX for bug-gnu-emacs@gnu.org; Sat, 22 Dec 2018 16:20:13 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56010) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gaogk-0005n7-Dd; Sat, 22 Dec 2018 16:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gaogk-00048s-2w; Sat, 22 Dec 2018 16:20: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 21:20: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.154551357415880 (code B ref 33794); Sat, 22 Dec 2018 21:20:02 +0000 Original-Received: (at 33794) by debbugs.gnu.org; 22 Dec 2018 21:19:34 +0000 Original-Received: from localhost ([127.0.0.1]:60268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaogH-000484-Rw for submit@debbugs.gnu.org; Sat, 22 Dec 2018 16:19:34 -0500 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:56260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaogG-00047p-4T for 33794@debbugs.gnu.org; Sat, 22 Dec 2018 16:19:32 -0500 Original-Received: by mail-wm1-f46.google.com with SMTP id y139so8271431wmc.5 for <33794@debbugs.gnu.org>; Sat, 22 Dec 2018 13:19:32 -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=brYQyGaICry+zYVKuxBXUogR1G5+d9bDJulAnpKhOSo=; b=O5ZardZeFnZSgJo1OWBbU4/3fLXvCEHyG9w9Zile4XKEb6KuvJPhFRzpJC5ufEMC73 642TtvDXNGka+JiwPsqyiYripEw/YA1ts6nkXojnBtv6BzP/1yypzQYNUojUDAkCTESi ovDmbDmjO1B2NPrlWt8TiA/aMR7xp/dK7h2x4qjGKBQbChO0y+BBp/7BEWPOY4rA9rKX wmrJpY8q5K63O73BfVyRZ9TsFh8+or1j+lDt4jyieRhl+X2kdQLhiu4PjnWCzUlkTY1o Uejd8rRdEEh6q5rMfnnZwxRhQrV8sYGLAiUeo9AQIW0qwThvsQW9ySZjQe5l7F2xh+PR GPcg== 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=brYQyGaICry+zYVKuxBXUogR1G5+d9bDJulAnpKhOSo=; b=UvNsDQcWsfdGxcsGPWLobdRo3q4ykOUtgeOkHQeXZHDTiPS83ILZqMNYyf14AsKwz1 QgLSOg6KIJRxil7kfBAFNS6MkkmsKSNvHG8KF3gBbsBoFsUDoEjDid9EMLqVTLC+F2Gk 3RttgghxPBB8FcUk32p+nX7yfTiSoR94JjwuZcgoO7fOCFH7d9SpPgZC3ShqUdYi0a3W pev7AMfjinDaTaW65FQ60MJ1dEQsy7WZ8ofsBe8dQUQD53DnOjTIXcDPBtKP1Hl2zeX7 vtQjbwuZMYUWgh08gu0UyJ5wBKYgfefmidU6/DtIeNADNoiZ19bJsnXsguGEXwFejVSi zGgA== X-Gm-Message-State: AJcUukfj+YmDGHRjTo8qnAcAl/E6CVPBvFAzpAZ1b1D2FMowR6LQhKsm +BF9VLA5M3nhFnOMDmZ9eoA= X-Google-Smtp-Source: ALg8bN7K+YsHh9GlZm3v2wLdF7Js43ocjNLfb6omJRJDdxHC0OwRGHwlsgoM25krJr102f3hum6zoA== X-Received: by 2002:a1c:dd04:: with SMTP id u4mr7310011wmg.84.1545513566226; Sat, 22 Dec 2018 13:19:26 -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 h17sm16337323wrt.59.2018.12.22.13.19.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Dec 2018 13:19:25 -0800 (PST) In-Reply-To: (Beatrix Klebe's message of "Sat, 22 Dec 2018 12:34:09 -0500") 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:153756 Archived-At: Beatrix Klebe writes: > Well, in that case, I am flattered that my opinion is given much > weight in this. It's supposed to work like that everyday in the Emacs bug tracker. If it flatters you, so much the better :-) > 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? Yes, that is precisely what I am suggesting. I am happy that this point made it across. Though there is not any need to give up on c-toggle-auto-newline if you don't use electric-pair-mode, or if you use some other tool like smartparens, or perhaps even my older tool autopair.el (tho those tools might have other drawbacks that I don't known) > And I suspect what Alan disagrees with? I apologize for any > misunderstanding. 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 :-) Jo=C3=A3o PS: I'm cleaning up the implementation of the more powerful electric-layout mode in branch scratch/fix-33794-extend-electric-layout-mode. I'll let you know if/when it is merged.