From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suman.nandan@gmail.com Newsgroups: gmane.emacs.help Subject: Emacs hangs when file with complex expressions is opened. Date: Sat, 31 May 2008 23:50:40 -0700 (PDT) Organization: http://groups.google.com Message-ID: <14d65eb2-0ef0-4141-be52-2f8113254aad@j33g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212312252 27175 80.91.229.12 (1 Jun 2008 09:24:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Jun 2008 09:24:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 01 11:24:54 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K2jo3-0007S2-LT for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jun 2008 11:24:51 +0200 Original-Received: from localhost ([127.0.0.1]:40285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2jnH-0005OG-Jc for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Jun 2008 05:24:03 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!j33g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 198.182.52.26 Original-X-Trace: posting.google.com 1212303040 11152 127.0.0.1 (1 Jun 2008 06:50:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 1 Jun 2008 06:50:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j33g2000pri.googlegroups.com; posting-host=198.182.52.26; posting-account=82D95AoAAAC-RpFBa1bARgwPVNUFZcZ2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008051206 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159037 X-Mailman-Approved-At: Sun, 01 Jun 2008 05:23:35 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54402 Archived-At: Hi Emacs Experts ! If I try to open a C++ file with the following statement, my emacs hangs: ------------------------------------------------------------------------------ ... definition(fsmGrammar const& ) { version = (*(anychar_p & ~ch_p(':'))) [&MvNativeFsmParser::getCurrentState] >> chseq_p("::") >> ch_p('(') >> (*(anychar_p & ~ch_p(')'))) [&MvNativeFsmParser::captureInputSignal] >> ch_p(')') >> ( *(anychar_p & ~ch_p('{')) )[&MvNativeFsmParser::getNextState] >> ch_p('{') >> ch_p('}') >> ch_p(',') >> ch_p('{') >> *( (*(anychar_p & ~ch_p('=') & ~ch_p('}')))[&MvNativeFsmParser::captureSignalName] >> ch_p('=') >> int_p[&MvNativeFsmParser::captureSignalValue] >> *ch_p(',')) >> ch_p('}') | epsilon_p |chseq_p("#") >> *(anychar_p); } ... ------------------------------------------------------------------------------- However if I comment the above few lines and try opening the file with Emacs, it works fine. My guess is that, Emacs internally tries to parse it and store something for easier navigation. Is there any way I can speedup this? My Emacs version is 21.3.1. Thanks in advance !! Suman Nandan.