From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#36484: c-mode hangs on macro with comment Date: Wed, 17 Jul 2019 08:22:10 +0000 Message-ID: <20190717082210.GA5596@ACM> References: <20190704133423.88899.qmail@mail.muc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="151870"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 36484-done@debbugs.gnu.org To: Nicholas Drozd Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 17 10:23:09 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hnfDP-000dNI-Qa for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2019 10:23:07 +0200 Original-Received: from localhost ([::1]:54962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnfDO-00068X-Ry for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Jul 2019 04:23:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43549) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnfDL-00067f-8O for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 04:23:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnfDK-0005jF-4N for bug-gnu-emacs@gnu.org; Wed, 17 Jul 2019 04:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42666) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnfDK-0005j1-0Y; Wed, 17 Jul 2019 04:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hnfDJ-0006B0-SS; Wed, 17 Jul 2019 04:23:01 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 17 Jul 2019 08:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 36484 X-GNU-PR-Package: emacs,cc-mode Mail-Followup-To: 36484@debbugs.gnu.org, acm@muc.de, nicholasdrozd@gmail.com Original-Received: via spool by 36484-done@debbugs.gnu.org id=D36484.156335174123690 (code D ref 36484); Wed, 17 Jul 2019 08:23:01 +0000 Original-Received: (at 36484-done) by debbugs.gnu.org; 17 Jul 2019 08:22:21 +0000 Original-Received: from localhost ([127.0.0.1]:51485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnfCf-0006A2-FH for submit@debbugs.gnu.org; Wed, 17 Jul 2019 04:22:21 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:46161 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hnfCY-00069p-JG for 36484-done@debbugs.gnu.org; Wed, 17 Jul 2019 04:22:19 -0400 Original-Received: (qmail 31032 invoked by uid 3782); 17 Jul 2019 08:22:12 -0000 Original-Received: from acm.muc.de (p4FE15E31.dip0.t-ipconnect.de [79.225.94.49]) by colin.muc.de (tmda-ofmipd) with ESMTP; Wed, 17 Jul 2019 10:22:11 +0200 Original-Received: (qmail 14420 invoked by uid 1000); 17 Jul 2019 08:22:10 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:163222 Archived-At: Hello, Nicholas. On Thu, Jul 04, 2019 at 12:08:14 -0500, Nicholas Drozd wrote: > Works for me! That's great, thanks. I'm closing the bug with this post. > Attached is a patch for an added cc-mode test case. The patch works fine, too, thanks. But I got bogged down on the copyright assignment sort of things for the patch. Have you signed copyright assignment papers for Emacs? (I think you have, judging by the number of commits in your name, but I don't know where to look to check.) Otherwise, it would appear that your patch is a "trivial" patch, in that it is less than 15 lines long. But I think that only applies when the total number of lines you've contributed to Emacs is less than about 15. So, sorry about all this non-creative stuff, but would you please tell me whether or not you've signed an Emacs copyright assignment. Then I should be able to commit your patch. > By the way, I came across this issue because a similar line appears in > a winning entry to the 1988 International Obfuscated C Code Contest > (https://www.ioccc.org/1988/dale.c). That line is included in the test > case. > Trivia question: which Emacs maintainer is a past IOCCC winner? I don't know (and haven't cheated by researching it ;-), but if I had to guess, I'd say Paul Eggert. [ snip patch ]. -- Alan Mackenzie (Nuremberg, Germany).