From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: cursor doesn't show through transparent images in emacs 22, unlike emacs 21 Date: Wed, 06 Sep 2006 12:00:10 +0200 Message-ID: References: <851wqpgxtp.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157536911 22653 80.91.229.2 (6 Sep 2006 10:01:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Sep 2006 10:01:51 +0000 (UTC) Cc: juri@jurta.org, ken.manheimer@gmail.com, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 06 12:01:49 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GKuE1-0006KH-Vw for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 12:01:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKuE1-0008E5-Ka for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 06:01:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKuDp-0008D5-Av for emacs-devel@gnu.org; Wed, 06 Sep 2006 06:01:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKuDm-0008Ak-GO for emacs-devel@gnu.org; Wed, 06 Sep 2006 06:01:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKuDm-0008Af-9g for emacs-devel@gnu.org; Wed, 06 Sep 2006 06:01:26 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GKuDs-00073e-AO; Wed, 06 Sep 2006 06:01:32 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepb.post.tele.dk (Postfix) with SMTP id 4E318A50085; Wed, 6 Sep 2006 12:01:16 +0200 (CEST) Original-To: David Kastrup In-Reply-To: <851wqpgxtp.fsf@lola.goethe.zz> (David Kastrup's message of "Wed\, 06 Sep 2006 11\:15\:46 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59433 Archived-At: David Kastrup writes: > Richard Stallman writes: > >> > What exactly is the workaround you recommend? >> >> Use :mask ... >> >> Then how about changing the default value for :mask? > > There is no sensible default. What is useful as a mask depends on the > image in question. Using heuristic-mask can mean that the whole image > flashes, but it can also mean that just a single corner pixel blinks. > > Even when a mask is specified, using the whole mask as a cursor > indication is not a good idea, since a large image with a background > will then flash horribly. The right fix in my opinion would be to use > the border of the image (extending into the image itself if the border > is too small, overwriting the image when no mask is given, but maybe > heeding the mask if it is given). For a block cursor, there should be > a maximum number of pixels that is affected. If this number is > exceeded, a box cursor would be used with a thickness that does not > cause the number of pixels to exceed the threshold, but lets it have > at least the thickness of a box cursor + 1 pixel. > > Something like that. Yes, sounds tiresome. Indeed. So... can we please postpone resolving this until after the release. There is currently a work-around (using :mask) in the FEW (if any) cases where there is no border around an image that could be used for the cursor. And the other work-around is to specify a border. This is not a new bug -- it's been like this since 21.1, and only recently have we had just one user complaining about it. And he seems satisfied with the changes I made to use a block cursor for small images. -- Kim F. Storm http://www.cua.dk