all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dave Milter <davemilter@gmail.com>
To: Alan Mackenzie <acm@muc.de>
Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org
Subject: Re: open large file with C code: is it realy should be so slow?
Date: Sun, 27 Dec 2009 13:33:43 +0300	[thread overview]
Message-ID: <2a382c6e0912270233h14ce76e3q4572c9161c9870e1@mail.gmail.com> (raw)
In-Reply-To: <2a382c6e0912190251pbe0842ayb2873f5855d393e3@mail.gmail.com>

On Sat, Dec 19, 2009 at 1:51 PM, Dave Milter <davemilter@gmail.com> wrote:
> Hi,
>
> I tried emacs-cvs package from my Linux distributive.
> M-x version says that it is GNU Emacs 23.1.90.1.
>
> It much, much better then previous version, yes it still eats cpu,
> during fast scrolling, but not continuosly, and stop eat cpu, after I
> scroll all file.
>
> But I faced with another problem, have no idea is it related to new
> code in c-mode.
>
> Time to time magic tab stop working.
>
> For example, I have code like this
> if (foo) {
> }
> I insert line after if (foo) {
> if (foo) {
> if (boo) {
> }
> tab not move "if (boo) {" to position with right indentation.
>
> But if I kill buffer, and repopen file all works as expected.
> I can not find way to constantly reproduce this bug,
> this happened time to time, when I insert a couple of lines into
> existing code, <tab> stop working in right way, I kill buffer,
> open file again, and all works.
>


I was able to reproduce it constantly.

Open empty file C file, for example
/tmp/1.c
type
#include <stdio.h><enter>
<enter>
int main(int argc, char *argv[])<enter>
{<enter>
}<enter>

after that save and go to "{"
type enter and wrote:
if (argc < 3) {<enter>
}<enter>

aftern that tab will not move "if (argc < 3)" to right position.




      reply	other threads:[~2009-12-27 10:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-01 10:01 open large file with C code: is it realy should be so slow? Dave Milter
2008-12-01 12:37 ` Alan Mackenzie
2009-01-04 22:07   ` Dave Milter
2009-01-04 23:31     ` Alan Mackenzie
2009-11-01 17:01       ` Dave Milter
2009-01-06  0:01     ` Richard M Stallman
2009-01-06  5:52       ` Chong Yidong
2009-01-06 22:59         ` Richard M Stallman
2009-01-07  1:16           ` Chong Yidong
2009-01-08 11:37             ` Richard M Stallman
2009-01-08 12:42               ` Alan Mackenzie
2009-01-06 19:03       ` Alan Mackenzie
2009-01-06 21:50         ` Stefan Monnier
2009-12-04 15:25     ` Alan Mackenzie
2009-12-19 10:51       ` Dave Milter
2009-12-27 10:33         ` Dave Milter [this message]

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=2a382c6e0912270233h14ce76e3q4572c9161c9870e1@mail.gmail.com \
    --to=davemilter@gmail.com \
    --cc=acm@muc.de \
    --cc=bug-cc-mode@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.