From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#29024: CC-mode infinite loop on typing < in template spec Date: Fri, 27 Oct 2017 13:40:36 +0000 Message-ID: <20171027134035.GA3933@ACM> References: <83o9ot6lkw.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1509112030 9716 195.159.176.226 (27 Oct 2017 13:47:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2017 13:47:10 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: Richard Copley , 29024@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 27 15:47:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e84yW-0001kp-70 for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 15:47:04 +0200 Original-Received: from localhost ([::1]:57388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e84yd-0006AT-7K for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 09:47:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e84yX-000697-6U for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 09:47:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e84yU-0002DT-4B for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 09:47:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55671) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e84yU-0002D9-0J for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 09:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e84yT-000113-NN for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 09:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Oct 2017 13:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29024 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed fixed Original-Received: via spool by 29024-submit@debbugs.gnu.org id=B29024.15091119873858 (code B ref 29024); Fri, 27 Oct 2017 13:47:01 +0000 Original-Received: (at 29024) by debbugs.gnu.org; 27 Oct 2017 13:46:27 +0000 Original-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 Original-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 Original-Received: (qmail 13606 invoked by uid 3782); 27 Oct 2017 13:46:24 -0000 Original-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 Original-Received: (qmail 3988 invoked by uid 1000); 27 Oct 2017 13:40:36 -0000 Content-Disposition: inline In-Reply-To: <83o9ot6lkw.fsf@gnu.org> 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: 208.118.235.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:139073 Archived-At: 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).