all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oke Oldenburg <oke.oldenburg@tesis.de>
Subject: emacs hang up with bad-brackets cpp-file
Date: Thu, 25 Aug 2005 14:27:05 +0200	[thread overview]
Message-ID: <430DB919.1090607@tesis.de> (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

                 reply	other threads:[~2005-08-25 12:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=430DB919.1090607@tesis.de \
    --to=oke.oldenburg@tesis.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.