On Tue, Mar 06, 2007 at 06:00:21PM +0100, Daniel Jacobowitz wrote: > Package: xterm > Version: 224-1 > Followup-For: Bug #410915 > > I see a similar intermittent problem in emacs inside screen. > Sometimes, if I search for a string using C-s that is not present, > after the "beep" (screen flash) the name of the current file is > redrawn in the wrong background color. > > It doesn't always happen. Turn on font-lock-mode and open a C file, > so that there are a couple different colors on the screen. If it > doesn't happen at one point, scroll down until different colors are > drawn and try again. > > I don't think this happened in 223-1, and I don't think I upgraded > emacs.
But it sounds like a bug reported against #223 a few weeks ago. Here's the fix I made (for #225): --- util.c 2007/02/25 23:41:42 1.337 +++ util.c 2007/02/26 01:22:16 1.338 @@ -1,4 +1,4 @@ -/* $XTermId: util.c,v 1.337 2007/02/25 23:41:42 tom Exp $ */ +/* $XTermId: util.c,v 1.338 2007/02/26 01:22:16 tom Exp $ */ /* $XFree86: xc/programs/xterm/util.c,v 3.98 2006/06/19 00:36:52 dickey Exp $ */ @@ -1402,6 +1402,7 @@ TScreen *screen = &(xw->screen); Pixel c = getXtermBackground(xw, xw->flags, color); + TRACE(("set_background(%d) %#lx\n", color, c)); XSetWindowBackground(screen->display, VShellWindow, c); XSetWindowBackground(screen->display, VWindow(screen), c); } @@ -2936,6 +2937,8 @@ XClearArea(screen->display, VWindow(screen), left, top, width, height, False); + + set_background(xw, -1); } } #endif /* OPT_ISO_COLORS */ -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
pgpltvpm9L7lK.pgp
Description: PGP signature