[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Redisplay bug in 21.2.90.1]
From: |
Kim F. Storm |
Subject: |
Re: address@hidden: Redisplay bug in 21.2.90.1] |
Date: |
14 Jun 2002 01:14:28 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
I tracked this down to a bug in `insert' which doesn't
adjust END_UNCHANGED in case the insert happens in the
unchanged region. This happens if require-final-newline
it t (e.g. in c-mode) when doing save-buffer.
I just committed a fix on HEAD.
I guess it isn't serious enough to include on RC branch...?
++kfs
"Kim F. Storm" <address@hidden> writes:
> ------- Start of forwarded message -------
>
> This bug is also present in 21.1 and CVS.
> I'll take a look at it.
>
> ++kfs
>
> To: address@hidden
> Subject: Redisplay bug in 21.2.90.1
> From: Jim Blandy <address@hidden>
> Date: 10 Jun 2002 19:23:46 -0500
>
>
> I've found a bug in redisplay in Emacs 21.2.90.1, running under Red
> Hat Linux 7.2 on an i686-pc-linux-gnu, compiled with gcc (GCC) 3.2
> 20020506 (experimental).
>
> Put the following text in the file bar.c:
>
> - ---- cut below
> #include <stdio.h>
> #include <pthread.h>
>
> int
> main (int argc, char **argv)
> - ---- cut above
>
> Now start emacs under X Windows: emacs -geometry 80x40 -q
>
> Type the following commands (ignore the <help-echo>; this is `C-h l'
> output):
>
> <help-echo> C-x C-f b a r . c <return> M-> { <return>
> } C-p <help-echo> <return> <tab> r e t u r n SPC 0
> ; C-a C-x C-s
>
> The window showing bar.c will now display:
>
> - ---- cut below
> #include <stdio.h>
> #include <pthread.h>
>
> int
> main (int argc, char **argv)
> {
> return 0;
> }
> }
> - ---- cut above
>
> Note the extra closing curly brace there. But if you hit C-l, it goes
> away.
>
>
> _______________________________________________
> Emacs-devel mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/emacs-devel
>
>
--
Kim F. Storm <address@hidden> http://www.cua.dk