From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Huge {...} blocks in C/C++ again Date: Fri, 18 Oct 2013 20:18:35 +0000 Message-ID: <20131018201835.GB3012@acm.acm> References: <525C2291.40607@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1382127649 6777 80.91.229.3 (18 Oct 2013 20:20:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2013 20:20:49 +0000 (UTC) Cc: Emacs development discussions To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 18 22:20:50 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VXGXS-0005pF-Ah for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 22:20:50 +0200 Original-Received: from localhost ([::1]:59306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXGXR-0007SE-PO for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2013 16:20:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXGXK-0007S1-7j for emacs-devel@gnu.org; Fri, 18 Oct 2013 16:20:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXGXC-0006to-R5 for emacs-devel@gnu.org; Fri, 18 Oct 2013 16:20:42 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:44903 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXGXC-0006qu-Fy for emacs-devel@gnu.org; Fri, 18 Oct 2013 16:20:34 -0400 Original-Received: (qmail 28685 invoked by uid 3782); 18 Oct 2013 20:20:33 -0000 Original-Received: from acm.muc.de (pD9518115.dip0.t-ipconnect.de [217.81.129.21]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 18 Oct 2013 22:20:31 +0200 Original-Received: (qmail 4898 invoked by uid 1000); 18 Oct 2013 20:18:35 -0000 Content-Disposition: inline In-Reply-To: <525C2291.40607@yandex.ru> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164330 Archived-At: Hi, Dmitry. On Mon, Oct 14, 2013 at 08:57:53PM +0400, Dmitry Antipov wrote: > An issue from: > https://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00483.html > is exactly reproduced on this header from LLVM project, most probably > due to huge I'm not convinced about that "most probably". ;-) > #ifdef __cplusplus > extern "C" { > #endif > /* a lot of things */ > #ifdef __cplusplus > } // extern "C" > #endif > block - a lot of things between top-level { and } hangs everything, > without a chance to quit with C-g. > To reproduce, just do 'emacs -Q linux_syscall_hooks.h' and scroll ~1/2 of buffer. First investigative results: the problem occurs only with the CC Mode embedded in Emacs. With the standalone CC Mode (available at ) the file works without problems. I've run ELP on the scrolling, and there seems to be a well defined call stack causing the problem, with c-syntactic-skip-backwards being where it's hanging. I'll see if I can debug this over the weekend. > Dmitry -- Alan Mackenzie (Nuremberg, Germany).