From unknown Sun Jun 22 00:08:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15078: 24.2; Long, Short, Signed, or Unsigned in c++-mode hangs emacs Resent-From: Matt Bisson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Aug 2013 18:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15078 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 15078@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.137633090316810 (code B ref -1); Mon, 12 Aug 2013 18:09:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Aug 2013 18:08:23 +0000 Received: from localhost ([127.0.0.1]:55178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8wXW-0004N2-FH for submit@debbugs.gnu.org; Mon, 12 Aug 2013 14:08:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43016) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8wSj-0004EV-83 for submit@debbugs.gnu.org; Mon, 12 Aug 2013 14:03:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8wSW-0004Kv-Jy for submit@debbugs.gnu.org; Mon, 12 Aug 2013 14:03:19 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8wSW-0004Kq-Hf for submit@debbugs.gnu.org; Mon, 12 Aug 2013 14:03:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8wSP-0007YS-US for bug-gnu-emacs@gnu.org; Mon, 12 Aug 2013 14:03:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8wSJ-0004E8-8l for bug-gnu-emacs@gnu.org; Mon, 12 Aug 2013 14:03:05 -0400 Received: from amber.ccs.neu.edu ([129.10.116.51]:34555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8wSJ-0004Dw-5e for bug-gnu-emacs@gnu.org; Mon, 12 Aug 2013 14:02:59 -0400 Received: from zimbra.ccs.neu.edu ([129.10.116.59]) by amber.ccs.neu.edu with esmtp (Exim 4.69) (envelope-from ) id 1V8wSI-0006lE-EI for bug-gnu-emacs@gnu.org; Mon, 12 Aug 2013 14:02:58 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.ccs.neu.edu (Postfix) with ESMTP id 6596E97001B for ; Mon, 12 Aug 2013 14:02:58 -0400 (EDT) X-Virus-Scanned: amavisd-new at zimbra.ccs.neu.edu Received: from zimbra.ccs.neu.edu ([127.0.0.1]) by localhost (zimbra.ccs.neu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nj3IpvycMp0T for ; Mon, 12 Aug 2013 14:02:52 -0400 (EDT) Received: from zimbra.ccs.neu.edu (zimbra.ccs.neu.edu [129.10.116.59]) by zimbra.ccs.neu.edu (Postfix) with ESMTP id 43E98F5C015 for ; Mon, 12 Aug 2013 14:02:52 -0400 (EDT) Date: Mon, 12 Aug 2013 14:02:52 -0400 (EDT) From: Matt Bisson Message-ID: <12355789.507181376330572172.JavaMail.root@zimbra> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [65.116.132.250] X-Mailer: Zimbra 5.0.22_GA_3210.UBUNTU6 (ZimbraWebClient - FF3.0 (Linux)/5.0.22_GA_3210.UBUNTU6) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.4 (---) X-Mailman-Approved-At: Mon, 12 Aug 2013 14:08:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -3.4 (---) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': 1. (on Windows or Cygwin Emacs): run "emacs -Q something.cpp" 2. Type "Long" in the buffer. This causes emacs to display "Lon" then enter into what seems like an infinite loop. You cannot interact with emacs, except for the notable exception that C-g works(!). If I had to guess, I would say the "c-primitive-type-prefix-kwds" has something to do with it, but it may be a red herring... If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file c:/emacs-24.2/etc/DEBUG. In GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-28 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: C++/l Minor modes in effect: display-battery-mode: t show-paren-mode: t display-time-mode: t xgtags-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t abbrev-mode: t Recent input: T y p e n a m e C l a s s S t r u c t C o n s t SPC M-x r e p o r t - e m Recent messages: Loading mwheel...done Loading c:/Users/mbisson/elisp/dos.elc...done Loading c:/Users/mbisson/elisp/gtags.elc...done Loading c:/Users/mbisson/elisp/xgtags.elc...done Loading font-lock...done For information about GNU Emacs and the GNU system, type C-h C-a. x.cpp has auto save data; consider M-x recover-this-file delete-backward-char: Beginning of buffer [29 times] Auto-saving... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt battery paren time xgtags gtags dos easymenu noutline outline easy-mmode advice help-fns advice-preload time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From unknown Sun Jun 22 00:08:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15078: 24.2; Long, Short, Signed, or Unsigned in c++-mode hangs emacs Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 12 Aug 2013 18:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15078 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: Matt Bisson Cc: 15078@debbugs.gnu.org Received: via spool by 15078-submit@debbugs.gnu.org id=B15078.137633117717302 (code B ref 15078); Mon, 12 Aug 2013 18:13:02 +0000 Received: (at 15078) by debbugs.gnu.org; 12 Aug 2013 18:12:57 +0000 Received: from localhost ([127.0.0.1]:55184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8wbw-0004V0-Kj for submit@debbugs.gnu.org; Mon, 12 Aug 2013 14:12:56 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:42288 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8wbu-0004Us-GE for 15078@debbugs.gnu.org; Mon, 12 Aug 2013 14:12:54 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1V8wbt-0006p3-Gq; Mon, 12 Aug 2013 14:12:53 -0400 From: Glenn Morris References: <12355789.507181376330572172.JavaMail.root@zimbra> X-Spook: George W. Bush [Hello to all my friends and fans in X-Ran: -=/@fD~RX(&.0w|cgupO=N}=@}J%DVeK;EXdg24?qxIwy/h/z1IJ*w*qT:hk_ETL)%Sb+y X-Hue: cyan X-Attribution: GM Date: Mon, 12 Aug 2013 14:12:53 -0400 In-Reply-To: <12355789.507181376330572172.JavaMail.root@zimbra> (Matt Bisson's message of "Mon, 12 Aug 2013 14:02:52 -0400 (EDT)") Message-ID: <9aa9kmaica.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -7.1 (-------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -7.1 (-------) Matt Bisson wrote: > 1. (on Windows or Cygwin Emacs): run "emacs -Q something.cpp" > 2. Type "Long" in the buffer. > > This causes emacs to display "Lon" then enter into what seems like an > infinite loop. Thanks for the report. I see this in Emacs 24.3, but not the current trunk, so it seems to already be fixed. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 12 14:13:18 2013 Received: (at control) by debbugs.gnu.org; 12 Aug 2013 18:13:18 +0000 Received: from localhost ([127.0.0.1]:55188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8wcI-0004W2-4X for submit@debbugs.gnu.org; Mon, 12 Aug 2013 14:13:18 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:42301 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V8wcH-0004Vv-4b for control@debbugs.gnu.org; Mon, 12 Aug 2013 14:13:17 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1V8wcG-0006sA-7n for control@debbugs.gnu.org; Mon, 12 Aug 2013 14:13:16 -0400 Date: Mon, 12 Aug 2013 14:13:16 -0400 Message-Id: Subject: control message for bug 15078 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -7.8 (-------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -7.8 (-------) found 15078 24.3 close 15078 24.4 From unknown Sun Jun 22 00:08:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15078: 24.2; Long, Short, Signed, or Unsigned in c++-mode hangs emacs Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Fri, 16 Aug 2013 10:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15078 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: Glenn Morris Cc: 15078@debbugs.gnu.org, Matt Bisson Received: via spool by 15078-submit@debbugs.gnu.org id=B15078.137665023215125 (code B ref 15078); Fri, 16 Aug 2013 10:51:01 +0000 Received: (at 15078) by debbugs.gnu.org; 16 Aug 2013 10:50:32 +0000 Received: from localhost ([127.0.0.1]:34017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VAHbz-0003vt-QR for submit@debbugs.gnu.org; Fri, 16 Aug 2013 06:50:32 -0400 Received: from colin.muc.de ([193.149.48.1]:62640 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VAHbx-0003vi-FP for 15078@debbugs.gnu.org; Fri, 16 Aug 2013 06:50:30 -0400 Received: (qmail 99765 invoked by uid 3782); 16 Aug 2013 10:50:27 -0000 Received: from acm.muc.de (pD951BC4D.dip0.t-ipconnect.de [217.81.188.77]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 16 Aug 2013 12:50:26 +0200 Received: (qmail 4821 invoked by uid 1000); 16 Aug 2013 10:49:18 -0000 Date: Fri, 16 Aug 2013 10:49:18 +0000 Message-ID: <20130816104918.GA4773@acm.acm> References: <12355789.507181376330572172.JavaMail.root@zimbra> <9aa9kmaica.fsf@fencepost.gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9aa9kmaica.fsf@fencepost.gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -3.5 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -3.5 (---) On Mon, Aug 12, 2013 at 02:12:53PM -0400, Glenn Morris wrote: > Matt Bisson wrote: > > 1. (on Windows or Cygwin Emacs): run "emacs -Q something.cpp" > > 2. Type "Long" in the buffer. > > This causes emacs to display "Lon" then enter into what seems like an > > infinite loop. > Thanks for the report. I see this in Emacs 24.3, but not the current > trunk, so it seems to already be fixed. More precisely, in revision #112760 on 2013-05-28. -- Alan Mackenzie (Nuremberg, Germany).