unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* emacs hang up with bad-brackets cpp-file
@ 2005-08-25 12:27 Oke Oldenburg
  0 siblings, 0 replies; only message in thread
From: Oke Oldenburg @ 2005-08-25 12:27 UTC (permalink / raw)


Hi

when loading (or scrolling the loaded) file "fail.cxx" emacs freezes and 
goes on 100% cpu load until emacs.exe gets killed. No display update, no 
reaction on any keys or mouse events. Also the system "close" isnt 
processed.
(I'm using emacs 21.3 on windows, details see below)

Actions on my side:
- Starting emacs
- load fail.cxx
- when the bad line "m(n));" is visible, emacs freezes.
- when the line is not visible (e.g. if there are much more lines "  x;" 
in the file):
   - scroll down the buffer -> emacs freezes then


Here is my file "fail.cxx":

 >>> START of file:
#define W c)(c

int A()
{
}

int B()
{
   x;
   x;
   x;
   x;
   x;
   x;
   x;
   x;

   m(n));
}

int C()
{
}

<<< End of file

I assume the problem in a conflict of the not-nice define "c)(c" and the 
double close bracket, probably when calculating hilit.
The define (original its "#define CCCp char*)(const char*" ) is needed 
to have a short version of "(char*)(const char*)"
The doubled bracket were a result of cut and paste and should have been 
cleared in my next step, but the freeze occured before that ...

Can you duplicate the described behavior?

thanks for any help

Oke

PS: some informations of my emacs:

In GNU Emacs 21.3.1 (i386-mingw-nt5.0.2195)
  of 2004-03-10 on NYAUMO
configured using `configure --with-gcc (3.2)'
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: DEU
   locale-coding-system: iso-latin-1
   default-enable-multibyte-characters: t


Recent input:
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
(D:\programme\emacs-21.3\bin\emacs.exe)
Loading delsel...done
Loading desktop...done
Desktop loaded.
Loading advice...done
Loading d:/programme/emacs-21.3/site-lisp/uniq.el (source)...done
For information about the GNU Project and its goals, type C-h C-p.
Loading image...done
Loading emacsbug...done

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-25 12:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25 12:27 emacs hang up with bad-brackets cpp-file Oke Oldenburg

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).