all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: David Engster <deng@randomsample.de>
Cc: 16932@debbugs.gnu.org
Subject: bug#16932: 24.3; Fringe does not get correctly updated under very specific	circumstances
Date: Tue, 04 Mar 2014 14:44:54 +0900	[thread overview]
Message-ID: <wl8usqh609.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <87zjl79ehn.fsf@engster.org>

>>>>> 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	other threads:[~2014-03-04  5:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-03 21:08 bug#16932: 24.3; Fringe does not get correctly updated under very specific circumstances David Engster
2014-03-04  5:44 ` YAMAMOTO Mitsuharu [this message]
2014-03-04  8:00   ` David Engster
2014-03-04 11:07     ` YAMAMOTO Mitsuharu

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=wl8usqh609.wl%mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=16932@debbugs.gnu.org \
    --cc=deng@randomsample.de \
    /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.