From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: [jimb@red-bean.com: Redisplay bug in 21.2.90.1] Date: 14 Jun 2002 01:14:28 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5x3cvqixez.fsf@kfs2.cua.dk> References: <20020611073034.889577C016@mail.filanet.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024006526 2789 127.0.0.1 (13 Jun 2002 22:15:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Jun 2002 22:15:26 +0000 (UTC) Cc: Jim Blandy Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17IcsH-0000is-00 for ; Fri, 14 Jun 2002 00:15:25 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17IdGl-0000hW-00 for ; Fri, 14 Jun 2002 00:40:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Ics4-0007ap-00; Thu, 13 Jun 2002 18:15:12 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17Icqh-0007WD-00 for ; Thu, 13 Jun 2002 18:13:47 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id CD3397C016; Thu, 13 Jun 2002 22:13:44 +0000 (GMT) Original-To: emacs-devel@gnu.org In-Reply-To: <20020611073034.889577C016@mail.filanet.dk> Original-Lines: 78 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4842 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4842 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" writes: > ------- Start of forwarded message ------- > > This bug is also present in 21.1 and CVS. > I'll take a look at it. > > ++kfs > > To: emacs-pretesters@gnu.org > Subject: Redisplay bug in 21.2.90.1 > From: Jim Blandy > 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 > #include > > int > main (int argc, char **argv) > - ---- cut above > > Now start emacs under X Windows: emacs -geometry 80x40 -q > > Type the following commands (ignore the ; this is `C-h l' > output): > > C-x C-f b a r . c M-> { > } C-p 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 > #include > > 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 > Emacs-devel@gnu.org > http://mail.gnu.org/mailman/listinfo/emacs-devel > > -- Kim F. Storm http://www.cua.dk