From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dima Kogan 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: Fri, 12 Apr 2019 23:32:48 -0700 Message-ID: <87ftqms9db.fsf@secretsauce.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="216769"; mail-complaints-to="usenet@blaine.gmane.org" Cc: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= To: 35254@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 13 08:34: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 1hFCEu-000uE7-FQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Apr 2019 08:34:13 +0200 Original-Received: from localhost ([127.0.0.1]:47523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFCEt-0003eE-Gd for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Apr 2019 02:34:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFCEn-0003e1-Vs for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2019 02:34:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFCEm-00042W-FH for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2019 02:34:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hFCEk-0003x7-Rf for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2019 02:34:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hFCEk-0003cn-LH for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2019 02:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Apr 2019 06:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35254 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155513718413860 (code B ref -1); Sat, 13 Apr 2019 06:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Apr 2019 06:33:04 +0000 Original-Received: from localhost ([127.0.0.1]:57525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFCDn-0003bT-Ly for submit@debbugs.gnu.org; Sat, 13 Apr 2019 02:33:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hFCDm-0003b0-4H for submit@debbugs.gnu.org; Sat, 13 Apr 2019 02:33:02 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44898) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFCDg-00033x-T6 for submit@debbugs.gnu.org; Sat, 13 Apr 2019 02:32:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFCDf-0003IR-PQ for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2019 02:32:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFCDe-00032u-PE for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2019 02:32:55 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:53051) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFCDe-00031k-AI for bug-gnu-emacs@gnu.org; Sat, 13 Apr 2019 02:32:54 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id A92C64B6; Sat, 13 Apr 2019 02:32:51 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 13 Apr 2019 02:32:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=from:to:cc:subject:date:message-id:mime-version:content-type; s=fm3; bh=BZXZZ0he17IqiJvj5Ad6XAW1aC4PbHVDBHCJlCa/7Hg=; b=Csl64 K7R9cEBQ2qYqJNRjeJgPfA/LCosVY3svvd5sCgl0nbDRhHxODA/W4ZH9qH79fnSS HsZt/Ejc9nAi/rAWCCqQ+NOQhjAi4R4oRwLsNGk8iaXapEeRCdrNNK7KsFM3hjVU GO5hbgyeCb8uePJkbS/oCv2tmxlW2h0b6Q2s2oo9FFCd8MmryGaW7mRSS8F6zAVh 8cxvJyxipB1fKPTpafUKh80H74iZBN+NaiGXvEDSgrsr0fvGB62BA7hx+oTQZk1J tjugT/XBbd4TRNdd9Iz+JPgd8yYxXrj3fiFj+N3jY+O+282h1wbochb5YLB3jzNe Lz4l/P9aAKdxl0ixg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=BZXZZ0he17IqiJvj5Ad6XAW1aC4Pb HVDBHCJlCa/7Hg=; b=HUSkN2yT/LtGu1YT/CT3hj2RJUDxHIg5IyRqWg4sRUjAH 6zjVjF0SKEQ96WsirZITz/OIN2S4hvcOTVrDEqpR841+Q8Z2lxE8VJuwniG+lzTU WU1XzxTGcnwAYGJkMWFv/jwsaqAIZEtX9uFFxRyK48VNDbabv731mfOh63dBr8Ih +xCFq1bceBivIIdXWUzY2J7BtwjfkHwgnfCcgDlGEuBxsWspupAb9sEhYEG/JU10 iu6bWyWNyMfF7AT+3NkDljIAtIeNKvYLzQxA3Huxr/Yy2qABju9jTHBaJd1vNg9R a5//QdBzK1slk1O2WEvLr132DVKSPwZD7xQXl4AMg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrvdeggdegjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkgggtsehttdertddttddtnecuhfhrohhmpeffihhmrgcumfhoghgr nhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuffhomhgrihhnpehgnh hurdhorhhgnecukfhppedutdejrddvuddtrddvudefrddvgeefnecurfgrrhgrmhepmhgr ihhlfhhrohhmpeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvthenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Original-Received: from scrawny (107-210-213-243.lightspeed.irvnca.sbcglobal.net [107.210.213.243]) by mail.messagingengine.com (Postfix) with ESMTPA id 679C2E415C; Sat, 13 Apr 2019 02:32:50 -0400 (EDT) Original-Received: from dima by scrawny with local (Exim 4.91) (envelope-from ) id 1hFCDY-0004Fc-Io; Fri, 12 Apr 2019 23:32:48 -0700 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:157571 Archived-At: Hi. I'm seeing a regression introduced in 2019/01 by an update meant to make electric-pair-mode and electric-layout-mode play nicely: http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=fd943124439b7644392919bca8bc2a77e6316d92 Recipe: 1. 'emacs -Q' with any emacs more recent than that patch 2. Open up tst.c that contains this: int main(int argc, char* argv[]) { return 0; } 3. Move the point to the beginning of the line containing "return 0" 4. RET RET RET RET RET Now there're a bunch of new lines between the { and the "return 0", as expected. But these lines aren't empty: they contain the initial indentation whitespace. This whitespace shouldn't be there; and it wasn't there prior to this patch. Thanks for working on emacs!