From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 03:29:03 2017 Received: (at submit) by debbugs.gnu.org; 27 Oct 2017 07:29:03 +0000 Received: from localhost ([127.0.0.1]:35905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7z4g-0000wG-N8 for submit@debbugs.gnu.org; Fri, 27 Oct 2017 03:29:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7z4e-0000vk-Od for submit@debbugs.gnu.org; Fri, 27 Oct 2017 03:29:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7z4X-0008M1-VG for submit@debbugs.gnu.org; Fri, 27 Oct 2017 03:28:55 -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, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44030) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e7z4X-0008Lj-Rm for submit@debbugs.gnu.org; Fri, 27 Oct 2017 03:28:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7z4W-0003V4-0s for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 03:28:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7z4U-0008Ii-EF for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 03:28:52 -0400 Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]:57117) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7z4U-0008I7-88 for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 03:28:50 -0400 Received: by mail-oi0-x22b.google.com with SMTP id v9so9544784oif.13 for ; Fri, 27 Oct 2017 00:28:49 -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=3RwP2/oOL2wRMvP/+aLjaQlxSDCbRx2DyMWIkVsxKn0=; b=u7ixZSRadUgA0pgjdtc2ecLY9t04NLu5Y4M3A6Ad+9jasdBitIon9SsJrVxKkH3yy8 mqQU0yESCTL3JPMIq3P+x/TGYMJhFyhBf9e8LcK3cfyz9JgGTZ5bWtPPKk4OQUf+pOr0 iRBCz/6LP7qQGpp8g58YzP1q138rtEied3F1aIpl6sm/+cIYqbPMpSXM9sa9wA9uzHe8 74ljTfqX4B1mP3AtHAfSuHQFcuo3yU9+MFiHe/4wjT4SZuNKxh4DVaHr4QSY2UjfOptF jY6g2PJN6Ht4NX9QhYCyZTlDIpJGLW2liUyaj3DJFQ5Ul7t5qRtPRt1e7PyORlz/Wwsj Ynvg== 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=3RwP2/oOL2wRMvP/+aLjaQlxSDCbRx2DyMWIkVsxKn0=; b=N1prTH6dN4hpP2Nz9Oqpe3vmPQFbDfddsiuPD2AEVOJg4Ng4frsd344YMt3GBhZ219 dNCznkQZCIwj2TWmmrNkS7ZjVeAsdRh1TNqEY50Ky8svUo5YAiWNf5MX/5TQdhRknCH4 pN38W19/Cm9rE8COtmBl7GyhacmQ3GeewrhlUOtuPT2vQ4PFEWE4ZFHAeTUCRSiq9GVf CIVP74NuAoaJL0RoXU5CgH4re2vDF4fJdDAhJiiKg/W1DVGSCDLpofpfkJR9Hdt1x77k RI5sG8+Q4WEqRmxayPdsPAkpupmNVh+0xKy6B9y8ljeviRVlzS4RJROSJrVChZGsE3ix c1/g== X-Gm-Message-State: AMCzsaX4z/ySdudYm0gNiFyHGYHisTdyzernbvbiV8vjg8gl5zkxwooE GSQAVErJlfRaJYkf+XGH5J+JG2A1PujCacsvoxS+Pvfv X-Google-Smtp-Source: ABhQp+SzISj6JLN9sdXbqzYJ5Z+77qr127Vs6g/4DMtL/15enGoVAEahQk4WdtV+jxRjpdryCgsokTdBU64dozx2kXk= X-Received: by 10.157.82.73 with SMTP id q9mr35941otg.31.1509089328944; Fri, 27 Oct 2017 00:28:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.64.8 with HTTP; Fri, 27 Oct 2017 00:28:18 -0700 (PDT) From: Richard Copley Date: Fri, 27 Oct 2017 08:28:18 +0100 Message-ID: Subject: CC-mode infinite loop on typing < in template spec 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) In an empty CC-mode buffer, after typing "template <", Emacs enters an infinite loop. This was asked about here: and reported on the emacs-devel list here: . Recipe: 1. Visit an empty or non-existent .cpp file 2. Type "template <". Emacs hangs. To trigger the bug again, 3. M-x erase-buffer RET 4. M-x normal-mode RET 5. Go to step 2. The Emacs-lisp backtrace on quit is: Debugger entered--Lisp error: (quit) c-forward-<>-arglist-recur(nil) c-forward-<>-arglist(nil) c-restore-<>-properties(10 11 0) #f(compiled-function (fn) #)(c-restore-<>-properties) mapc(#f(compiled-function (fn) #) (c-depropertize-new-text c-parse-quotes-after-change c-extend-font-lock-region-for-macros c-after-change-re-mark-raw-strings c-neutralize-syntax-in-and-mark-CPP c-restore-<>-properties c-change-expand-fl-region)) c-after-change(10 11 0) self-insert-command(1) c-electric-lt-gt(nil) funcall-interactively(c-electric-lt-gt nil) call-interactively(c-electric-lt-gt nil nil) command-execute(c-electric-lt-gt) In GNU Emacs 26.0.90 (build 1, x86_64-w64-mingw32) of 2017-10-13 built on MACHINE Repository revision: d79fbb1818dc442ce71e7b55a8f1a4995d6fcd9e Windowing system distributor 'Microsoft Corp.', version 10.0.15063 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Debug on Quit enabled globally Entering debugger... Configured using: 'configure --config-cache --with-modules --without-pop 'CFLAGS=-O3 -ggdb3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES LCMS2 Important settings: value of $EMACSLOADPATH: c:\emacs-lisp; value of $LANG: en_GB.UTF-8 locale-coding-system: cp1252 Major mode: Debugger Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode cl-print byte-opt gv bytecomp byte-compile cconv debug cus-start cus-load cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 125933 9286) (symbols 56 23532 1) (miscs 48 69 106) (strings 32 37375 1623) (string-bytes 1 1065619) (vectors 16 17502) (vector-slots 8 519143 6247) (floats 8 58 316) (intervals 56 311 17) (buffers 992 13)) From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 03:41:23 2017 Received: (at 29024) by debbugs.gnu.org; 27 Oct 2017 07:41:23 +0000 Received: from localhost ([127.0.0.1]:35910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7zGd-0001GF-3g for submit@debbugs.gnu.org; Fri, 27 Oct 2017 03:41:23 -0400 Received: from mail-oi0-f49.google.com ([209.85.218.49]:49920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7zGb-0001Fy-PG; Fri, 27 Oct 2017 03:41:22 -0400 Received: by mail-oi0-f49.google.com with SMTP id w197so9615547oif.6; Fri, 27 Oct 2017 00:41:21 -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=zBis9shhckH5mTSOAKaguo/RQmkhStEVPsPldmqaydE=; b=rgcpg0yVxmXQ3wWaVoPxQiaUFB0NIk8W/z3WSSVS6q3kddWXu5fyZqfnHeWr72e1To ZxxBfoecjCXrFqRHM3UsYGrkWo3mrxMNJLVbT8eLxumjF3KmhG7NuGczOVOcHrmOP1Vs zN+9AINjOgnqknpLjGqW3V3xf/TvsAO1muKhB3KtI4Nf4JXqSZTQgD2GMR7iw2fyjew0 heKEYULtDeyw3LUrkp8XktJ7hfF0DVLXuUhj6oM6P7bd6ISwgXogPmqtG8bzgT9pmNK9 Zn+wgSAelnI7Fzx8OYOmVOFc7d/PjFvHbyRzQyWcTXn9c24B2u6M2qtA6xAGEYWRihpi G6eQ== 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=zBis9shhckH5mTSOAKaguo/RQmkhStEVPsPldmqaydE=; b=s8UeOJQTyiCMaQIVVM29arZuwAhwP7Q5CwWehAJ2WzD1O1gLA1jzvARatqE/nqGTuJ IKmGqDUv0ClHP7E+IB1AHfd1GQHDXYWLeZFEyLORpZXZOrlgReVHst3lyWe64xSHKFCD i1fsNcsQLfWeoJ25amLIhnhGtnWIBCUeofWuomlr5Y8O7G5IQUzGDkLVpOJ44X6U0GW3 QTzLXoAhWz9r/2RwXyNwWxlrohkxKCuB+s4dyY81Ax7yzbiq1xARr3mEtSYxtJGQS+UR r7dMxUUvDEo6PGMCdAiVnfeFJGktqgVRSCLhlWmoMO8KG1hCMgpXkZBzh11z5iLnYFan IwNQ== X-Gm-Message-State: AMCzsaVKpO2Ka5sjnqWXU93lU0rt5wpb6lRbbbPZhaBjuEGnL+93P9KQ NTjY+zo2JQWWSF46rw8xnKR3JyMOUz6Ef1jMOajFjw== X-Google-Smtp-Source: ABhQp+RD3+BBl2BXKKXAWkPTYK0Cz5Q6Pnzuwl5QPVH3uu6HqRyWag0szLkSzC0H+bj2pj9mz+/mX+F3PHsDgLmtvOE= X-Received: by 10.157.67.118 with SMTP id y51mr4190437oti.293.1509090075835; Fri, 27 Oct 2017 00:41:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.64.8 with HTTP; Fri, 27 Oct 2017 00:40:45 -0700 (PDT) From: Richard Copley Date: Fri, 27 Oct 2017 08:40:45 +0100 Message-ID: Subject: RE: CC-mode infinite loop on typing < in template spec To: 29024@debbugs.gnu.org, GNU bug tracker automated control server Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29024 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: 0.5 (/) merge 28926 29024 thanks #29024 appears to be the same bug as #28926. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 04:29:12 2017 Received: (at 29024) by debbugs.gnu.org; 27 Oct 2017 08:29:12 +0000 Received: from localhost ([127.0.0.1]:35936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e800u-0004Gv-1e for submit@debbugs.gnu.org; Fri, 27 Oct 2017 04:29:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e800s-0004Gk-Ip for 29024@debbugs.gnu.org; Fri, 27 Oct 2017 04:29:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e800m-0001nV-LK for 29024@debbugs.gnu.org; Fri, 27 Oct 2017 04:29:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e800f-0001eW-A1; Fri, 27 Oct 2017 04:28:57 -0400 Received: from [176.228.60.248] (port=2881 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e800c-0008Up-Vy; Fri, 27 Oct 2017 04:28:56 -0400 Date: Fri, 27 Oct 2017 11:28:47 +0300 Message-Id: <83o9ot6lkw.fsf@gnu.org> From: Eli Zaretskii To: Richard Copley In-reply-to: (message from Richard Copley on Fri, 27 Oct 2017 08:40:45 +0100) Subject: Re: bug#29024: CC-mode infinite loop on typing < in template spec References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29024 Cc: Alan Mackenzie , 29024@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Richard Copley > Date: Fri, 27 Oct 2017 08:40:45 +0100 > > #29024 appears to be the same bug as #28926. Strangely enough, with today's emacs-26 branch, I cannot reproduce either of those two recipes. I can reproduce them with stock 26.0.90 pretest, though. Maybe this only happens in optimized builds? Alan, are you looking into this? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 04:34:13 2017 Received: (at 29024) by debbugs.gnu.org; 27 Oct 2017 08:34:13 +0000 Received: from localhost ([127.0.0.1]:35940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e805l-0004PH-JN for submit@debbugs.gnu.org; Fri, 27 Oct 2017 04:34:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e805k-0004P4-86 for 29024@debbugs.gnu.org; Fri, 27 Oct 2017 04:34:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e805c-0008Fl-2O for 29024@debbugs.gnu.org; Fri, 27 Oct 2017 04:34:07 -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.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e805b-0008FP-VY; Fri, 27 Oct 2017 04:34:04 -0400 Received: from [176.228.60.248] (port=2887 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e805Z-0004ru-I0; Fri, 27 Oct 2017 04:34:02 -0400 Date: Fri, 27 Oct 2017 11:33:54 +0300 Message-Id: <83mv4d6lcd.fsf@gnu.org> From: Eli Zaretskii To: rcopley@gmail.com In-reply-to: <83o9ot6lkw.fsf@gnu.org> (message from Eli Zaretskii on Fri, 27 Oct 2017 11:28:47 +0300) Subject: Re: bug#29024: CC-mode infinite loop on typing < in template spec References: <83o9ot6lkw.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29024 Cc: acm@muc.de, 29024@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 27 Oct 2017 11:28:47 +0300 > From: Eli Zaretskii > Cc: Alan Mackenzie , 29024@debbugs.gnu.org > > > From: Richard Copley > > Date: Fri, 27 Oct 2017 08:40:45 +0100 > > > > #29024 appears to be the same bug as #28926. > > Strangely enough, with today's emacs-26 branch, I cannot reproduce > either of those two recipes. I can reproduce them with stock 26.0.90 > pretest, though. Maybe this only happens in optimized builds? It would be good if you could try in the latest branch HEAD, your build seems 2 weeks behind it. Then we'd know if the bug was somehow already fixed. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 08:02:24 2017 Received: (at 29024) by debbugs.gnu.org; 27 Oct 2017 12:02:24 +0000 Received: from localhost ([127.0.0.1]:36024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e83LC-00035K-7I for submit@debbugs.gnu.org; Fri, 27 Oct 2017 08:02:22 -0400 Received: from mail-oi0-f41.google.com ([209.85.218.41]:53187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e83LA-000354-UU for 29024@debbugs.gnu.org; Fri, 27 Oct 2017 08:02:21 -0400 Received: by mail-oi0-f41.google.com with SMTP id c202so10491014oih.9 for <29024@debbugs.gnu.org>; Fri, 27 Oct 2017 05:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=x0TZLZQtcnIWQaZl5ohuzlzQxcIpBmjsNcrlli8+WzY=; b=QcUAks2zWndXCNLNYdarUxNJskVJKXGvB2l7KRaeSTwuXZCTdthcBPg1fN9mPPq/Gg W9O6SDmaD3inE2R5lT09PElIYDRiiruSFe1vBw6rvCw7MIWDmWx2iYfiMLl4oJXZRJmW O6bqx4DO5WZNn79hOWP0pqIIWo4Ofw1JBUqW1hdKEZ/HJN5LUpV+Ce7l97r/jQEg7VP7 cf2xBmTXQWQN6BX7kQQzqZAVW5vNtSC4kQFdK0X05K9jEKXcpsnXlbP6kqyLeR6ZAWfO gPLXZAK9SjrqsHcIhS5BudVXvC+1DbDTNRDqrpcsGttb0kJX30+J+REFKlx2H7aHCgnh +l4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=x0TZLZQtcnIWQaZl5ohuzlzQxcIpBmjsNcrlli8+WzY=; b=TsuwXoGX4Y1hdD/Z4LflVtNdposx7wR2/wPKB3IoWCDDUR1NTXVN+IqYtRJqCNytsE pKN7GXmFbqs3AJr4wI6xvIvK1/pwXGHNNX/IdAWy4rr6DXFY+7DxgML1XzGwU6cr4aU7 u+kTjvHHoeNLaLYgp0oLwu/Gy+5DYzIYknLmJAkgfH/0bls9wU/g0pVZTdqm1zzqPXKT 3ekxFnrwTmS996jridza0crkLobJzQ1nZeDmpETTZoYUg3/7U+5c4ZG9I3lftRVYXbzU xzeAMlYeLsPaNf/9M/EK6dFBs69MvhSXeeiA5PL2EzQR8KZvZKcdIgCx6c26sbf8pxYd +N1w== X-Gm-Message-State: AMCzsaWQzjY8aL4VNns3e2tQeYY+jgj4ZZqo9Vcw3VM3MbQASWLZWDdv jBbR3tsMEPGUR3Ny7ifg/KiSuhe46okpOlpXsq8= X-Google-Smtp-Source: ABhQp+RA3LTV/Flcx19UIEvp4y/4uyFjz6GJDvtory2bR4quT/W//x7yPUHxka1NU1YatuZlob364hKwVlk4DSYZw8g= X-Received: by 10.202.243.85 with SMTP id r82mr140573oih.82.1509105734735; Fri, 27 Oct 2017 05:02:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.64.8 with HTTP; Fri, 27 Oct 2017 05:01:44 -0700 (PDT) In-Reply-To: <83mv4d6lcd.fsf@gnu.org> References: <83o9ot6lkw.fsf@gnu.org> <83mv4d6lcd.fsf@gnu.org> From: Richard Copley Date: Fri, 27 Oct 2017 13:01:44 +0100 Message-ID: Subject: Re: bug#29024: CC-mode infinite loop on typing < in template spec To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29024 Cc: Alan Mackenzie , 29024@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: 0.5 (/) On 27 October 2017 at 09:33, Eli Zaretskii wrote: >> Date: Fri, 27 Oct 2017 11:28:47 +0300 >> From: Eli Zaretskii >> Cc: Alan Mackenzie , 29024@debbugs.gnu.org >> >> > From: Richard Copley >> > Date: Fri, 27 Oct 2017 08:40:45 +0100 >> > >> > #29024 appears to be the same bug as #28926. >> >> Strangely enough, with today's emacs-26 branch, I cannot reproduce >> either of those two recipes. I can reproduce them with stock 26.0.90 >> pretest, though. Maybe this only happens in optimized builds? > > It would be good if you could try in the latest branch HEAD, your > build seems 2 weeks behind it. Then we'd know if the bug was somehow > already fixed. > > Thanks. Thanks, perhaps so. Not reproducible in my latest build. (This is built and run on a different computer, using Windows 7 not Windows 10, but I don't suppose that's likely to make a difference.) In GNU Emacs 26.0.90 (build 1, x86_64-w64-mingw32) of 2017-10-27 built on [redacted] Repository revision: 1e9f599b1fe1b25a69a80f5a8e0cb81b789ade82 Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. (New file) Configured using: 'configure --config-cache --with-modules --without-pop 'CFLAGS=-O3 -ggdb3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES LCMS2 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 08:07:05 2017 Received: (at 29024) by debbugs.gnu.org; 27 Oct 2017 12:07:05 +0000 Received: from localhost ([127.0.0.1]:36032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e83Pk-0003CM-Rv for submit@debbugs.gnu.org; Fri, 27 Oct 2017 08:07:05 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:43362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e83Pj-0003Br-4k for 29024@debbugs.gnu.org; Fri, 27 Oct 2017 08:07:03 -0400 Received: by mail-oi0-f46.google.com with SMTP id c77so10556298oig.0 for <29024@debbugs.gnu.org>; Fri, 27 Oct 2017 05:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8cS5qe0wvgcVuEKHlcUFAoxvvoEaRTI9gMBCcqD2hYk=; b=LwhEY3vT2KaSejYlusqRcHobpjJBZYFXtuesbIZimnVC0s0mz8IjYs92MatBRs8xlr v67PGASt7NeMd40gQtHgJWedNuRqGRPiBZ7S40L5IXVvg0AQQCo5m5GcsCWxoImMV+NM A5t4yFKVpRqq1Tv5x4WGrTMIK+EzQnZJ4POE0DkhWUEjp2u9W/Tiac41QN50IqB/cdSa IF2cVDFvm4fFoKuhm8lhHGcPtj+2vv5UZ6PCUqRfdwB9Mbz/dP7TWBfH8fzBlvYEhWKx JIsp4Qwd/Zq9sMHhtxQvBOSJub1mgSNg8PV6WGFeSB8v20P7ip9zuNUiONyIxqogPi26 ldww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8cS5qe0wvgcVuEKHlcUFAoxvvoEaRTI9gMBCcqD2hYk=; b=Cu/YAv4evxyI9PJB0TICKMyOyWaMKuQsNp89mIPBaOkG5qC778sydhNkV9qzhEbHVN QwohiwV3tAXMhmOyGNL2aU2P7+dwtSdy96vcqvzp1WEEYwRgckmS+bIjpo8OxIwIwU5l D7DuaorXwg7fxRzlOhnXt8Xhwhw0LZqZUQ+EXJLja3pBcRrhvrkFyNjKJCOPZX8yksF4 +y4MylUdnGYAn3GlfsvhEkGJM5v2/yVGfSwH+MHbFigCCpwKGiZ8+cgrvVQT+0PIiJrk k4S0QzUx//mjC0OJYob1XoXcvQZANj0id1/Uy0i1Hi/rX3duPqXoVq5f/XzvSNmKXnV7 SzFQ== X-Gm-Message-State: AMCzsaVWVJReRCmKno/B+XA1ewQ9/CpNIcEjQDTLHU5MSFoWxjQx38PA 4Y2atnxolOAL08QL47SKzYAFExXRJWTFJZoqVCw= X-Google-Smtp-Source: ABhQp+RVb/ZYxPZ9LXtNS91PrxfhfPLL/6jamIHr2EFEAreESQTZM/P/oumI45JhTac9begER06IyTWn6IH3QzgqR8U= X-Received: by 10.202.252.134 with SMTP id a128mr152168oii.124.1509106017649; Fri, 27 Oct 2017 05:06:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.64.8 with HTTP; Fri, 27 Oct 2017 05:06:27 -0700 (PDT) In-Reply-To: References: <83o9ot6lkw.fsf@gnu.org> <83mv4d6lcd.fsf@gnu.org> From: Richard Copley Date: Fri, 27 Oct 2017 13:06:27 +0100 Message-ID: Subject: Re: bug#29024: CC-mode infinite loop on typing < in template spec To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 29024 Cc: Alan Mackenzie , 29024@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: 0.5 (/) On 27 October 2017 at 13:01, Richard Copley wrote: > On 27 October 2017 at 09:33, Eli Zaretskii wrote: > Not reproducible in my latest build. [...] > Repository revision: 1e9f599b1fe1b25a69a80f5a8e0cb81b789ade82 That's fsf/emacs-26 53aaad1dfc1f9e0ffe7ee457967426584cd7f541 of Fri Oct 27 01:14:17 2017, plus irrelevant local patches. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 08:21:40 2017 Received: (at 29024) by debbugs.gnu.org; 27 Oct 2017 12:21:40 +0000 Received: from localhost ([127.0.0.1]:36055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e83ds-0003YC-KG for submit@debbugs.gnu.org; Fri, 27 Oct 2017 08:21:40 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:48298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e83dq-0003Xp-H3; Fri, 27 Oct 2017 08:21:38 -0400 Received: by mail-io0-f177.google.com with SMTP id j17so12274527iod.5; Fri, 27 Oct 2017 05:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=bwboznRN0NuPlkaFWutEDMWeEzBJEPnX4cHl8DKJIJw=; b=BISz53bviPpJIhW+oOIhd9TZI5EEiQoBOPHgAycioXNNd/JSilvxq7HIbAiEelshFF lR9hX6KbmfjdAqWXaMbmPrhjKXxfEUrxG/lMnzxA/sHgFEJipI8rLmLgwHvBOFDWGHiU Q8HS1VFgk/vrjPswxKQ2hOWZr6OUSodXno5sxiDe5lBJkGPzx1mJa2NQFgwNbqBUWdHM IKMypp18LmQqh98NBdcN4JZblo+1Q8rBl3oOismsUDhJLm14fJ/P9SsYz7qSMT0XGU5u 3lT2tsl5V9TyH0kX79XjMlEO8enJ2dwRadf/+F7m0L3LLQa2CCBDMsNIqOtYwbUzXgt+ CzzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=bwboznRN0NuPlkaFWutEDMWeEzBJEPnX4cHl8DKJIJw=; b=eYtQTiHUzwzjz6BAC4+lcOm3zWgBHiAo5Ah6vrlqUb+veIUFYNRKeU/bYTw3MUgCC9 V6LaWTRdw8VPDTTkGZhbqkkspkFguPxOXPLtF+96QzLVDyy5xDyvw9afU0hOsPLa84zY KpwxoifnzSKwiBzKSeySahDA2/a6BGACtjWfsUET4vndHxGBGy0w8+sxqoGRhMS99oAf 0EoeG/FzzzsAm4n8oKXDKhSuR82Hc8PV9nGo+ewsbhHr3FPDgBALfLz6GBp9MDRaY48I TtM9hJdkud1S9eF42PbN2CQhyl3Kn4J2IBvo0PVsrFN2RpwpFkX5jXMGSsA8a9nssOqo rkRw== X-Gm-Message-State: AMCzsaWlMuYsq/1iaa2mREwDOg70H4elJQC45y7Ti0cWpARQECWjGPSL +WESTM43OXSaphxSxKcS8GhcOg== X-Google-Smtp-Source: ABhQp+SjVB1ONGPVAt+Mt6H1jRpvFEj9dU6Xa59cDweT9LqRIrNF+mNhGx2oa0VGcX8flkoCwq+Gmw== X-Received: by 10.36.244.69 with SMTP id u5mr363090iti.67.1509106892644; Fri, 27 Oct 2017 05:21:32 -0700 (PDT) Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id f3sm3360892iob.70.2017.10.27.05.21.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Oct 2017 05:21:31 -0700 (PDT) From: Noam Postavsky To: Richard Copley Subject: Re: bug#29024: CC-mode infinite loop on typing < in template spec References: <83o9ot6lkw.fsf@gnu.org> <83mv4d6lcd.fsf@gnu.org> Date: Fri, 27 Oct 2017 08:21:30 -0400 In-Reply-To: (Richard Copley's message of "Fri, 27 Oct 2017 13:06:27 +0100") Message-ID: <87wp3gbx2t.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 29024 Cc: Alan Mackenzie , Eli Zaretskii , 29024@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: -2.1 (--) tags 29024 fixed close 29024 quit Richard Copley writes: > On 27 October 2017 at 13:01, Richard Copley wrote: >> On 27 October 2017 at 09:33, Eli Zaretskii wrote: > >> Not reproducible in my latest build. > [...] >> Repository revision: 1e9f599b1fe1b25a69a80f5a8e0cb81b789ade82 > That's fsf/emacs-26 53aaad1dfc1f9e0ffe7ee457967426584cd7f541 > of Fri Oct 27 01:14:17 2017, plus irrelevant local patches. It's fixed by [1: b7c4aa951c], I can reproduce only with the previous commit. [1: b7c4aa951c]: 2017-10-22 14:18:20 +0000 Refactor c-forward-token-2 with new function c-forward-over-token-and-ws. https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=b7c4aa951c8b12629742df9d20d6374c3d2a8ba8> From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 27 09:46:27 2017 Received: (at 29024) by debbugs.gnu.org; 27 Oct 2017 13:46:27 +0000 Received: from localhost ([127.0.0.1]:36119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e84xv-00010A-Mj for submit@debbugs.gnu.org; Fri, 27 Oct 2017 09:46:27 -0400 Received: from ocolin.muc.de ([193.149.48.4]:60746 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1e84xt-000101-Qs for 29024@debbugs.gnu.org; Fri, 27 Oct 2017 09:46:26 -0400 Received: (qmail 13606 invoked by uid 3782); 27 Oct 2017 13:46:24 -0000 Received: from acm.muc.de (p548C7808.dip0.t-ipconnect.de [84.140.120.8]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 27 Oct 2017 15:46:23 +0200 Received: (qmail 3988 invoked by uid 1000); 27 Oct 2017 13:40:36 -0000 Date: Fri, 27 Oct 2017 13:40:36 +0000 To: Eli Zaretskii Subject: Re: bug#29024: CC-mode infinite loop on typing < in template spec Message-ID: <20171027134035.GA3933@ACM> References: <83o9ot6lkw.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83o9ot6lkw.fsf@gnu.org> User-Agent: Mutt/1.7.2 (2016-11-26) 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: 29024 Cc: Richard Copley , 29024@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: -0.0 (/) Hello, Eli. On Fri, Oct 27, 2017 at 11:28:47 +0300, Eli Zaretskii wrote: > > From: Richard Copley > > Date: Fri, 27 Oct 2017 08:40:45 +0100 > > #29024 appears to be the same bug as #28926. > Strangely enough, with today's emacs-26 branch, I cannot reproduce > either of those two recipes. I can reproduce them with stock 26.0.90 > pretest, though. Maybe this only happens in optimized builds? > Alan, are you looking into this? I think I fixed it last Sunday (though I haven't checked properly yet), with the following commit to the emacs-26 branch: commit b7c4aa951c8b12629742df9d20d6374c3d2a8ba8 Date: Sun Oct 22 14:18:20 2017 +0000 Refactor c-forward-token-2 with new function c-forward-over-token-and-ws. Use the new function directly in several places where c-forward-token-2 wouldn't move over the last token in the buffer. This caused an infinite loop in c-restore-<>-properties. Though, with the benefit of hindsight, the top line of the commit message wasn't as helpful as it might have been. Again, regrets that the bug happened at all. -- Alan Mackenzie (Nuremberg, Germany). From unknown Mon Jun 23 06:00:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 25 Nov 2017 12:24:06 +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