Date: Sun, 26 Oct 1997 17:23:37 +0200 (IST) From: Eli Zaretskii To: eyal DOT ben-david AT aks DOT com cc: djgpp AT delorie DOT com Subject: Re: EMACS problem In-Reply-To: <4225653C.003E7352.00@aks.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 26 Oct 1997 eyal DOT ben-david AT aks DOT com wrote: > I think that EMACS has a problem with large headers with many > #define directives. ( Many Windows headers contain several thousands lines) > > The problem is that at a location far from the beginning of the file, > EMACS reacts very slowly to editing commands (e.g. simple ENTER). This is a known problem. Emacs does almost a complete parsing of the buffer part that preceeds current location, so it could indent it when you press ENTER. This might be quite slow in ELisp in pathological cases such as yours. If you know that no indentation is required, just press Ctrl-j (linefeed) or Ctrl-q ENTER (quoted ENTER). Alternatively, you could try to narrow the buffer (`C-x n n') to exclude all but the last few CPP directives. (I didn't try that, so I wouldn't know if this really helps.) In any case, if you think the sloweness is unbearable, please report this together with the test case to the maintainer of the cc-mode.el package (the address should be at the beginning of the .el file), or to the gnu.emacs.bug news group. Reporting it here won't help, unless it's something DOS or DJGPP--specific.