From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#35254: 27.0.50; cc-mode/electric-pair-mode/electric-layout-mode: bad trailing whitespace behavior in cc-mode Date: Mon, 13 May 2019 21:26:54 -0400 Message-ID: References: <87ftqms9db.fsf@secretsauce.net> <871s15k7ll.fsf@gmail.com> <20190513195323.GB5525@ACM> <877eathqaa.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="6603"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Alan Mackenzie , =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , 35254@debbugs.gnu.org, Dima Kogan To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 14 07:26:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQPx9-0001bO-Q2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 May 2019 07:26:15 +0200 Original-Received: from localhost ([127.0.0.1]:39492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQPx8-00062m-FJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 14 May 2019 01:26:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQPx2-00062e-1y for bug-gnu-emacs@gnu.org; Tue, 14 May 2019 01:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQPx1-0000xU-8I for bug-gnu-emacs@gnu.org; Tue, 14 May 2019 01:26:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33186) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQMEf-0005dY-Q3; Mon, 13 May 2019 21:28:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hQMEc-0002y0-Cj; Mon, 13 May 2019 21:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 14 May 2019 01:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35254 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 35254-submit@debbugs.gnu.org id=B35254.155779722611340 (code B ref 35254); Tue, 14 May 2019 01:28:02 +0000 Original-Received: (at 35254) by debbugs.gnu.org; 14 May 2019 01:27:06 +0000 Original-Received: from localhost ([127.0.0.1]:46730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQMDi-0002wp-D3 for submit@debbugs.gnu.org; Mon, 13 May 2019 21:27:06 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:54432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hQMDf-0002we-43 for 35254@debbugs.gnu.org; Mon, 13 May 2019 21:27:04 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id x4E1R0LV010152; Mon, 13 May 2019 21:27:00 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id EB3FF66227; Mon, 13 May 2019 21:26:54 -0400 (EDT) In-Reply-To: <877eathqaa.fsf@gmail.com> (Noam Postavsky's message of "Mon, 13 May 2019 19:45:49 -0400") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6545=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6545> : inlines <7076> : streams <1821456> : uri <2844211> 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: 209.51.188.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:159244 Archived-At: > Do you mean `newline-and-indent`? Or are you talking about the margin > stuff? (which doesn't apply to progmodes usually, as far as I can tell). I'm talking about "the margin stuff". >> So, I'd suggest an even simpler patch which just closes the `unless` >> earlier. Would that work? > It has the same effect as Alan's patch: Indeed. I think it just fixes an inconsistency in Alan's patch (I assume Alan didn't know that (memq indent-line-function electric-indent-functions-without-reindent) is a way to catch some modes that failed to set electric-indent-inhibit). Stefan