all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs hangs when file with complex expressions is opened.
@ 2008-06-01  6:50 suman.nandan
  2008-06-01  9:37 ` David Kastrup
  0 siblings, 1 reply; 2+ messages in thread
From: suman.nandan @ 2008-06-01  6:50 UTC (permalink / raw)
  To: help-gnu-emacs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Emacs hangs when file with complex expressions is opened.
  2008-06-01  6:50 Emacs hangs when file with complex expressions is opened suman.nandan
@ 2008-06-01  9:37 ` David Kastrup
  0 siblings, 0 replies; 2+ messages in thread
From: David Kastrup @ 2008-06-01  9:37 UTC (permalink / raw)
  To: help-gnu-emacs

suman.nandan@gmail.com writes:

> Hi Emacs Experts !
> If I try to open a C++ file with the following statement, my emacs
> hangs:
> ------------------------------------------------------------------------------

> 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.

That one's very old.  Try getting 22.2 instead.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-01  9:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-01  6:50 Emacs hangs when file with complex expressions is opened suman.nandan
2008-06-01  9:37 ` David Kastrup

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.