From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 02 20:37:26 2019 Received: (at submit) by debbugs.gnu.org; 3 Jul 2019 00:37:26 +0000 Received: from localhost ([127.0.0.1]:48175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiTH4-0001S9-CA for submit@debbugs.gnu.org; Tue, 02 Jul 2019 20:37:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:59616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiTGz-0001Rz-IA for submit@debbugs.gnu.org; Tue, 02 Jul 2019 20:37:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35731) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hiTGy-0002a4-9u for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2019 20:37:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hiTGv-00085z-00 for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2019 20:37:19 -0400 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]:45300) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hiTGu-0007zi-PE for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2019 20:37:16 -0400 Received: by mail-oi1-x22f.google.com with SMTP id m206so534640oib.12 for ; Tue, 02 Jul 2019 17:37:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=GbM6JIckpt1IBArIEIJsLiP1hwpVAwWB/L0manjxiW0=; b=eRtsFm58zkTc83vPmBuwJNV5+9UpRXi05DMRKRnv1x1oG8yA4LhN1OiZlafp8UsLv2 RgFnm7CBxbcgTectMdU94Q4leMhT4+CCUMy1+I4y0JcoxuaFd275Dz90BFnbs9v/7MrW sAgXppz466TcskqqI5ByrbcBg4qrq0jN7bNai3GQ1+QgzoEn6Zu8YTnaE2+ZIVKQsMX0 hIK4zVTWVu5bCxgrl1dv43IHFoGhhJTPHuEaUK1yRxjfgYXdk/ICfGovrX67Zw7Clr4P y/WuvSBQpLybvFP4pgP9SygplpuES46b5JgqslgGpQWZxkOU3ekD7eWWUKlZQk3myJCN gwvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GbM6JIckpt1IBArIEIJsLiP1hwpVAwWB/L0manjxiW0=; b=dCHmMcTII0a+sHqcFS6g1xaO+qWs9oyT6N5ft2iHnRFNxUFBhVvgmYYILxafhhFOOr Ajqe5BTOezw+GeD2+GFPWAuaQPVA5+NzVw/yw08Asz1UEiRJBiG5+k619lryzf3sU0jn Ks06HBpmDaXt9bR4Jd8Lrm4Zky/bE8PEASFl4Y7PcifGwMGxT/L1+jei8OgFCcWEcNCS jSogxaKFaqB8w1/QqAQdi/+GBhdH3ApWeIzW1NXW90dTH4Y3RfOMLU6rMm2ojh+jSz5C LlBedoGY5+erWIO4Kcraidj+roT7cvfKWdc49YPHh1MdrvN/hXTjToYiwzZ/VoAFI6I1 Ga0w== X-Gm-Message-State: APjAAAWb4jrquZxhwAV62jGXFKjyMtrwZhx6ENlMkjs6JMG3pVRiGyjB JYXaWnob15XjzjBN/SpoHv20WmyGWjUke5wR3G+HNrEGjiI= X-Google-Smtp-Source: APXvYqxTZghKtkGgpIVJly6kH7evR61K65bejT8OVNjD+8xhM7Hlpa4OEz+ujFbmDXFjwQiueWm17nfYPv85EOMK0Lc= X-Received: by 2002:aca:ba02:: with SMTP id k2mr4529359oif.70.1562114225081; Tue, 02 Jul 2019 17:37:05 -0700 (PDT) MIME-Version: 1.0 From: Nicholas Drozd Date: Tue, 2 Jul 2019 19:36:52 -0500 Message-ID: Subject: c-mode hangs on macro with comment To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22f X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Here's a simple C program: #define x /***/5 int main(void) { return x; } `gcc -Wall` compiles it without any warnings, but opening it causes Emacs to hang, and sometimes even to freeze hard. It has something to do with the macro, but I haven't been able to figure out exactly what's going on. Here's a test function with an even smaller reproducing example: (defun c-mode-hang () (interactive) (with-temp-buffer (insert "#define /***/5") (c-mode))) Running that function under the profiler suggests that the problem is in `c-end-of-macro`: - c-extend-region-for-CPP 13869 98% - c-end-of-macro 10470 74% c-forward-single-comment 2759 19% This may have something to do with commit 39acaf, or maybe 6b5388. GNU Emacs 27.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-06-30 From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 04 06:36:27 2019 Received: (at 36484) by debbugs.gnu.org; 4 Jul 2019 10:36:27 +0000 Received: from localhost ([127.0.0.1]:50431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiz6J-0003pi-B3 for submit@debbugs.gnu.org; Thu, 04 Jul 2019 06:36:27 -0400 Received: from colin.muc.de ([193.149.48.1]:49546 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hiz6H-0003pY-5R for 36484@debbugs.gnu.org; Thu, 04 Jul 2019 06:36:26 -0400 Received: (qmail 20377 invoked by uid 3782); 4 Jul 2019 10:36:20 -0000 Date: 4 Jul 2019 10:36:20 -0000 Message-ID: <20190704103620.20376.qmail@mail.muc.de> From: Alan Mackenzie To: Nicholas Drozd Subject: Re: bug#36484: c-mode hangs on macro with comment Organization: muc.de e.V. In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.2-RELEASE-p9 (amd64)) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36484 Cc: 36484@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Nicholas. In article you wrote: > Here's a simple C program: > #define x /***/5 > int main(void) { > return x; > } > `gcc -Wall` compiles it without any warnings, but opening it causes > Emacs to hang, and sometimes even to freeze hard. I can reproduce this, and I'm looking into the cause. > It has something to do with the macro, but I haven't been able to > figure out exactly what's going on. > Here's a test function with an even smaller reproducing example: > (defun c-mode-hang () > (interactive) > (with-temp-buffer > (insert "#define /***/5") > (c-mode))) > Running that function under the profiler suggests that the problem is > in `c-end-of-macro`: > - c-extend-region-for-CPP 13869 98% > - c-end-of-macro 10470 74% > c-forward-single-comment 2759 19% Thanks, that's helpful information. > This may have something to do with commit 39acaf, or maybe 6b5388. > GNU Emacs 27.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) > of 2019-06-30 -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 04 09:34:32 2019 Received: (at 36484) by debbugs.gnu.org; 4 Jul 2019 13:34:32 +0000 Received: from localhost ([127.0.0.1]:50577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj1se-0001nW-1U for submit@debbugs.gnu.org; Thu, 04 Jul 2019 09:34:32 -0400 Received: from colin.muc.de ([193.149.48.1]:23570 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hj1sc-0001nK-OQ for 36484@debbugs.gnu.org; Thu, 04 Jul 2019 09:34:31 -0400 Received: (qmail 88900 invoked by uid 3782); 4 Jul 2019 13:34:23 -0000 Date: 4 Jul 2019 13:34:23 -0000 Message-ID: <20190704133423.88899.qmail@mail.muc.de> From: Alan Mackenzie To: Nicholas Drozd Subject: Re: bug#36484: c-mode hangs on macro with comment Organization: muc.de e.V. In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.2-RELEASE-p9 (amd64)) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36484 Cc: 36484@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello again, Nicholas. In article you wrote: > Here's a simple C program: > #define x /***/5 > int main(void) { > return x; > } > `gcc -Wall` compiles it without any warnings, but opening it causes > Emacs to hang, and sometimes even to freeze hard. > It has something to do with the macro, but I haven't been able to > figure out exactly what's going on. There was an infinite loop in c-end-of-macro, now fixed. [ .... ] > Running that function under the profiler suggests that the problem is > in `c-end-of-macro`: Indeed, so. [ .... ] I've committed a patch to the Emacs repository master branch. Would you please update your copy of master, and confirm the bug is indeed fixed (or else, tell me what's still wrong). > GNU Emacs 27.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) > of 2019-06-30 Thanks for taking the trouble to report this bug, and thanks even more for making it such an easy to follow report, and doing so much diagnosis on it. -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 04 13:08:40 2019 Received: (at 36484) by debbugs.gnu.org; 4 Jul 2019 17:08:40 +0000 Received: from localhost ([127.0.0.1]:51850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj5Dr-0001F8-Nd for submit@debbugs.gnu.org; Thu, 04 Jul 2019 13:08:39 -0400 Received: from mail-oi1-f175.google.com ([209.85.167.175]:33205) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hj5Dn-0001Eq-4y for 36484@debbugs.gnu.org; Thu, 04 Jul 2019 13:08:35 -0400 Received: by mail-oi1-f175.google.com with SMTP id u15so5401449oiv.0 for <36484@debbugs.gnu.org>; Thu, 04 Jul 2019 10:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=a3PIxlBMixOKeH9DLmmkblNr/lLzG023IYDDN5E2jfo=; b=PV4Z2YjyAZFWOVRh6TsOZG6sXkZTRfT3kGA5j6CEjTkZJQ1nHFVe2KCZZNDGCxWhx7 0W4hq4Ky/LyB14j9pPro0BTu3knQM9362FNQalCwWVSW++BrhRrgn+CFjJ2/iKrja1Nn hDpUwIXm7pJ8OPjJuiyA5riI2vW41CVWvTEnrZ4WmVzXkujGmHt/9bLxuFJr0uF2rQCX ELzB4oLChmm3EoCC+Sm1zWWgWdHfNkLG9iwZfXopR3JZNWieZMEY1Z/TucZsT89/1SYQ buqGC75c5Ww3qV8BAikdEq9TRsCLtwGVhYLaaXpvVMBlUgur+6qEAgJNxJ77QYQPQhXW hHoQ== 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:from:date :message-id:subject:to:cc; bh=a3PIxlBMixOKeH9DLmmkblNr/lLzG023IYDDN5E2jfo=; b=feAtDntdKmhkotJjEZ4W9O5GQ7Ol0JoLLWGwJYmabbH8RJkltx4pOyL6NmTR7BJEg9 z4nZLOnkm4cKwRktwt1epF+G8OtMU7qpk7bXIHwdajOWahrT3mztjIwINJrCzwvm88S9 yK0cNwfw5WKtQ8C3dyYVRzcZvKovhzwZbzTvZJKtx16RIrJMZWUBBbZrbdc4ljmAuRuj LQuLY0phBP4X7gJOYgnjnzSJhwnUD/FXzGBQuX0sxZaLhEKMWP/Kwg05oWJ4n1ybZeVt ssGlCQXt1dP7zMYoOvlHPhQ91+MmhNzwixUwsC/C7rdd/6j/8TKT4BXX1e1N3KS//YXG RkBw== X-Gm-Message-State: APjAAAXpgu5lWTXr7o25ucGqwrTA9tpuKyBAc2VflWGDpEcoz8KaW254 v4haRmrhqdNHXC5mnMfkxWkZmKEmuyhH8poJKjCtjpexgho= X-Google-Smtp-Source: APXvYqw7kBsEB6a1wlZUUeWIiFlzoNB09sD8NzjI1WHuFZjks4PpxOuxWtYpDypG2BH8ovUhMMX4mBnnG/Bm0Jm4+78= X-Received: by 2002:aca:4950:: with SMTP id w77mr376393oia.28.1562260109161; Thu, 04 Jul 2019 10:08:29 -0700 (PDT) MIME-Version: 1.0 References: <20190704133423.88899.qmail@mail.muc.de> In-Reply-To: <20190704133423.88899.qmail@mail.muc.de> From: Nicholas Drozd Date: Thu, 4 Jul 2019 12:08:14 -0500 Message-ID: Subject: Re: bug#36484: c-mode hangs on macro with comment To: Alan Mackenzie Content-Type: multipart/mixed; boundary="000000000000daefdb058cde06e9" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36484 Cc: 36484@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000daefdb058cde06e9 Content-Type: text/plain; charset="UTF-8" Works for me! Attached is a patch for an added cc-mode test case. 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? --000000000000daefdb058cde06e9 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-test-lisp-progmodes-cc-mode-tests.el-Add-test-for-bu.patch" Content-Disposition: attachment; filename="0001-test-lisp-progmodes-cc-mode-tests.el-Add-test-for-bu.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jxoxa4zm0 RnJvbSA1NjljMTBhMzY3ZWRiMjYxYTQ1ZDQxZjExOWQ5OGUzYmM5MzJkMTM1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBOaWNrIERyb3pkIDxuaWNob2xhc2Ryb3pkQGdtYWlsLmNvbT4K RGF0ZTogVGh1LCA0IEp1bCAyMDE5IDEwOjU5OjI1IC0wNTAwClN1YmplY3Q6IFtQQVRDSF0gKiB0 ZXN0L2xpc3AvcHJvZ21vZGVzL2NjLW1vZGUtdGVzdHMuZWw6IEFkZCB0ZXN0IGZvcgogYnVnIzM2 NDg0CgotLS0KIHRlc3QvbGlzcC9wcm9nbW9kZXMvY2MtbW9kZS10ZXN0cy5lbCB8IDkgKysrKysr KysrCiAxIGZpbGUgY2hhbmdlZCwgOSBpbnNlcnRpb25zKCspCgpkaWZmIC0tZ2l0IGEvdGVzdC9s aXNwL3Byb2dtb2Rlcy9jYy1tb2RlLXRlc3RzLmVsIGIvdGVzdC9saXNwL3Byb2dtb2Rlcy9jYy1t b2RlLXRlc3RzLmVsCmluZGV4IDBiOGYzN2RiYmYuLmMxMDEwNWZmZmMgMTAwNjQ0Ci0tLSBhL3Rl c3QvbGlzcC9wcm9nbW9kZXMvY2MtbW9kZS10ZXN0cy5lbAorKysgYi90ZXN0L2xpc3AvcHJvZ21v ZGVzL2NjLW1vZGUtdGVzdHMuZWwKQEAgLTY5LDQgKzY5LDEzIEBAIGMtb3ItYysrLW1vZGUKICAg ICAgICAgICAgICAgInN0cnVjdCB0ZW1wbGF0ZSB7IgogICAgICAgICAgICAgICAiI2luY2x1ZGUg PHN0cmluZy5oPiIpKSkpKQogCisoZXJ0LWRlZnRlc3QgYy1tb2RlLW1hY3JvLWNvbW1lbnQgKCkK KyAgIlRlc3QgZm9yIGJ1ZyMzNjQ4NC4iCisgIChkb2xpc3QgKG1hY3JvLXN0cmluZyAnKCIjZGVm aW5lIC8qKiovZiIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgIiNkZWZpbmUgeCAvKioqLzUi CisgICAgICAgICAgICAgICAgICAgICAgICAgICIjZGVmaW5lIGEoeClnZXQvKioqL3gvKioqL2lk KCkpIikpCisgICAgKHdpdGgtdGVtcC1idWZmZXIKKyAgICAgIChpbnNlcnQgbWFjcm8tc3RyaW5n KQorICAgICAgKGMtbW9kZSkpKSkKKwogOzs7IGNjLW1vZGUtdGVzdHMuZWwgZW5kcyBoZXJlCi0t IAoyLjE3LjEKCg== --000000000000daefdb058cde06e9-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 15 16:44:42 2019 Received: (at control) by debbugs.gnu.org; 15 Jul 2019 20:44:42 +0000 Received: from localhost ([127.0.0.1]:49261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn7px-0001oK-T5 for submit@debbugs.gnu.org; Mon, 15 Jul 2019 16:44:42 -0400 Received: from mail-io1-f52.google.com ([209.85.166.52]:40820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn7pw-0001o8-Ms for control@debbugs.gnu.org; Mon, 15 Jul 2019 16:44:41 -0400 Received: by mail-io1-f52.google.com with SMTP id h6so36331733iom.7 for ; Mon, 15 Jul 2019 13:44:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=YS640h0OmpTJkNmhMlGHICvxYdUeX+zR43MsBHsZV3E=; b=b5y9lKTTRMED4qjsM5gqt+vwQyzEK2GDWiCW1LWfN6Pq3n2TziRvqTxiXD6/od8e7i twcak7VfrFgwl7kX5x2tFitvVFUM5UmPNWVoZAOejCBB8VpbjEsnwBsDFx3Z104FRheh ZRYyGiuPBRaR4tCgJ7zcy81Mv/pL+bflbDIsBOwPWfF8GkkrzkEMVDLTA+lf9ftSilof 6AvZyFFAF8mFF8qtkfpzUr1NS0iILCnWcTjFDsM+Ew9RusRy08qcogWTsM2eUrnIaNhG 3Ln+3yISkcJmICryGC+tYpFzt6QC0N6CH0Bnj/+xpFju5BoTekYYddmucnG2+xge8g/Q TbgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=YS640h0OmpTJkNmhMlGHICvxYdUeX+zR43MsBHsZV3E=; b=C79UQOuFyL9AV5gbpJAGGNT8daFcb2QjMc//jY8XjCIG/M7IHg23ldRgz1UCiZCICb AmdRDA8LSBzV91z70rB0L+a+sP8htbz9c9F4ahkJN/edskoneXaRikjYc/kqJIKjRiTJ nO/XDmwFiW8rdGCO9NJyCm3SCgt962quE4KXSOiizwvoFqj8V6i6MQz20HkdEl0uq9os R+hHW3L01fh9pjjyHxtNIUlCl8iemCXPkiNikWI2P9mB9Mkz5AZ6HX/Bci837E3ZFI01 Y/dYKvA/fRBEO77InSOOlwGYf4Gd37R1TZKNZZfjEP51Zs677trsVgEH1sHl78ksazY3 znjg== X-Gm-Message-State: APjAAAWl29EjpO6eJlJCNaPTjQ7sGfX6lYU9SFxnpzuTAwIKfV50klaK 9E7tmfOHQNi78LjelLvBsFXVdWlH X-Google-Smtp-Source: APXvYqyIWfTRzpBQf3+GTXmqXZPvNiPTZeXAOCexTHL+yFe8XAfDs+98R44Uvb2SYnlnjgdF5f/IJg== X-Received: by 2002:a5d:94d0:: with SMTP id y16mr24913042ior.123.1563223474975; Mon, 15 Jul 2019 13:44:34 -0700 (PDT) Received: from vhost2 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196]) by smtp.gmail.com with ESMTPSA id f20sm15064990ioh.17.2019.07.15.13.44.34 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Jul 2019 13:44:34 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #36484 Date: Mon, 15 Jul 2019 16:44:33 -0400 Message-ID: <85ims3koy6.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) fixed 36484 27.1 quit From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 17 04:22:21 2019 Received: (at 36484-done) by debbugs.gnu.org; 17 Jul 2019 08:22:21 +0000 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 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 Received: (qmail 31032 invoked by uid 3782); 17 Jul 2019 08:22:12 -0000 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 Received: (qmail 14420 invoked by uid 1000); 17 Jul 2019 08:22:10 -0000 Date: Wed, 17 Jul 2019 08:22:10 +0000 To: Nicholas Drozd Subject: Re: bug#36484: c-mode hangs on macro with comment Message-ID: <20190717082210.GA5596@ACM> References: <20190704133423.88899.qmail@mail.muc.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36484-done Cc: 36484-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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). From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 17 09:30:08 2019 Received: (at 36484-done) by debbugs.gnu.org; 17 Jul 2019 13:30:08 +0000 Received: from localhost ([127.0.0.1]:51709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnk0T-0005Jj-Aw for submit@debbugs.gnu.org; Wed, 17 Jul 2019 09:30:05 -0400 Received: from mail-ot1-f41.google.com ([209.85.210.41]:36677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnk0Q-0005It-Vn for 36484-done@debbugs.gnu.org; Wed, 17 Jul 2019 09:30:03 -0400 Received: by mail-ot1-f41.google.com with SMTP id r6so25013758oti.3 for <36484-done@debbugs.gnu.org>; Wed, 17 Jul 2019 06:30:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sK+tZqPbEzQt0N0ALGbarnf+3RiZzPNagrFrcXZtWcw=; b=WHmOfayUKk9pf6RsYIwG7+MXdxtLk8rjZXUDJJeNReuQU80EKTN8B4L6SxJ0BJ2zQB 3xCRhD0rj/ZhYioJHHID/rGiVr/0+rgIMgakNf94x+XUuoNuyUmRoQpdN0nyxGoZIVPF pKwsVYsI4qAhN6adr5mc2Dsjvn7ipR3yobipnIoVJL/sU5rYb/DcCxm6x6Vq9BKqJ8BI fHWr1LbKPtOY2LagL+H376k9gP0IKwmV6J8TRpQg4xfHj5M7Wq58947BngTgl4iArytA ekAwJEMwr/yRArzlEZK0UR397mqjHOirz2ndA6uiPhcsJOh7e2psZyH36TEiBwzgjSSR y2Og== 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:from:date :message-id:subject:to:cc; bh=sK+tZqPbEzQt0N0ALGbarnf+3RiZzPNagrFrcXZtWcw=; b=CirKJwxPqjQDD2ewm2owMFuCx+usgaGw48EOk40vPWgpILUjyaY9TT3aKoEUcXmRFU QjTtKPodGH7DTmhzsYlVgdd0+MUDjbpA6fV51Jc8uJKatYdYpg5u1ASFCIkDEQ/PUrsW rfB8RXHy5KPYBlYBVMn2tWqR0vo67T/QWGdwmsKgmdOwpbzkBPXHDaWfbbRv8UY4hEIT GpfDpylXFM2SL375OV2eWJ4EX40X9EbxIg8UZCbQcADRrGwRPFvIDltxo34/Cazd3SyG oNCqX/z0mEPtqEUgyVO9KPpvyTDJT3dULSpmR6rVoJLkAD1dGINWbfhFAgmm0y620lEl 1wyQ== X-Gm-Message-State: APjAAAXfMiU/KPzECdQ8p9AZFisMxnx4mKJMTNiWx8GUulaHm3/rOZaY jq5QVlCJP2XkCZh/Lr7Bvf5Fd2eaGuTDtmjtic4uZPHgnAI= X-Google-Smtp-Source: APXvYqxUGj4YZ3l0R2z8yAE656jdrkc9J9LDbgZq26qB3MamfNaMlHx/FUWfVSRH5HAzMLDmfqqKXhkUJFSv2Y/ndQg= X-Received: by 2002:a9d:5d12:: with SMTP id b18mr2494440oti.72.1563370196663; Wed, 17 Jul 2019 06:29:56 -0700 (PDT) MIME-Version: 1.0 References: <20190704133423.88899.qmail@mail.muc.de> <20190717082210.GA5596@ACM> In-Reply-To: <20190717082210.GA5596@ACM> From: Nicholas Drozd Date: Wed, 17 Jul 2019 08:29:44 -0500 Message-ID: Subject: Re: bug#36484: c-mode hangs on macro with comment To: Alan Mackenzie Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36484-done Cc: 36484-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Yes, I've signed, and yes, it was him (1990)! From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 17 10:32:23 2019 Received: (at 36484) by debbugs.gnu.org; 17 Jul 2019 14:32:23 +0000 Received: from localhost ([127.0.0.1]:52801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnkyl-0000P1-2g for submit@debbugs.gnu.org; Wed, 17 Jul 2019 10:32:23 -0400 Received: from colin.muc.de ([193.149.48.1]:16596 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hnkyi-0000Lg-1e for 36484@debbugs.gnu.org; Wed, 17 Jul 2019 10:32:20 -0400 Received: (qmail 85527 invoked by uid 3782); 17 Jul 2019 14:32:13 -0000 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 16:32:12 +0200 Received: (qmail 23034 invoked by uid 1000); 17 Jul 2019 14:32:11 -0000 Date: Wed, 17 Jul 2019 14:32:11 +0000 To: Nicholas Drozd Subject: Re: bug#36484: c-mode hangs on macro with comment Message-ID: <20190717143211.GE5596@ACM> References: <20190704133423.88899.qmail@mail.muc.de> <20190717082210.GA5596@ACM> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36484 Cc: 36484@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello again, Nicholas. On Wed, Jul 17, 2019 at 08:29:44 -0500, Nicholas Drozd wrote: > Yes, I've signed, .... Great! I've committed the amendment to cc-mode-tests.el in your name. > .... and yes, it was him (1990)! Hah! Good guess then! It doesn't surprise me at all. -- Alan Mackenzie (Nuremberg, Germany). From unknown Fri Aug 15 20:28:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 15 Aug 2019 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator