bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16932: 24.3; Fringe does not get correctly updated under very specif


From: YAMAMOTO Mitsuharu
Subject: bug#16932: 24.3; Fringe does not get correctly updated under very specific circumstances
Date: Tue, 04 Mar 2014 14:44:54 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Mon, 03 Mar 2014 22:08:52 +0100, David Engster <deng@randomsample.de> 
>>>>> said:

> I noticed that sometimes icons in the fringe from previous buffers
> remained visible when I switched buffers. It was quite difficult to
> reproduce, but I finally noticed that it always happens when you switch
> to(!) a buffer where

>  - point is on a tabulator
>  - there's an overlay on that tabulator until the end of the line
>  - that overlay has a face property with the fringe's background color

Thanks for narrowing this case down.  Could you try the following
patch?

=== modified file 'src/xterm.c'
*** src/xterm.c 2014-03-03 08:27:58 +0000
--- src/xterm.c 2014-03-04 05:32:27 +0000
***************
*** 2501,2506 ****
--- 2501,2508 ----
              XFillRectangle (s->display, s->window, gc, x, y, w, h);
              XSetForeground (s->display, gc, xgcv.foreground);
            }
+ 
+         XSetClipMask (s->display, gc, None);
        }
      }
    else if (!s->background_filled_p)


BTW, the latest Mac port (*) has the same problem and the
corresponding patch would be as follows:

*: http://lists.gnu.org/archive/html/emacs-devel/2014-02/msg00592.html

=== modified file 'src/macterm.c'
*** src/macterm.c       2014-02-27 10:27:00 +0000
--- src/macterm.c       2014-03-04 05:35:52 +0000
***************
*** 2420,2425 ****
--- 2420,2427 ----
          else
  #endif /* MAC_TODO */
            mac_erase_rectangle (s->f, gc, x, y, w, h);
+ 
+         mac_reset_clip_rectangles (s->f, gc);
        }
      }
    else if (!s->background_filled_p)


                                     YAMAMOTO Mitsuharu
                                mituharu@math.s.chiba-u.ac.jp





reply via email to

[Prev in Thread] Current Thread [Next in Thread]