From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#29024: CC-mode infinite loop on typing < in template spec Date: Fri, 27 Oct 2017 08:28:18 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1509089423 5247 195.159.176.226 (27 Oct 2017 07:30:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2017 07:30:23 +0000 (UTC) To: 29024@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 27 09:30:18 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 1e7z5o-0000EC-1D for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 09:30:12 +0200 Original-Received: from localhost ([::1]:56079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7z5v-0004Kt-GE for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Oct 2017 03:30:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7z5l-0004JM-Mn for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 03:30:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7z5f-0001Ij-N2 for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 03:30:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7z5f-0001IT-Iv for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 03:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e7z5e-0000yE-4F for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2017 03:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Oct 2017 07:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29024 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.15090893433617 (code B ref -1); Fri, 27 Oct 2017 07:30:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Oct 2017 07:29:03 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-Received: by 10.157.64.8 with HTTP; Fri, 27 Oct 2017 00:28:18 -0700 (PDT) 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-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:139051 Archived-At: 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))