From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: cursor doesn't show through transparent images in emacs 22, unlike emacs 21 Date: Wed, 06 Sep 2006 11:15:46 +0200 Message-ID: <851wqpgxtp.fsf@lola.goethe.zz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1157534278 14066 80.91.229.2 (6 Sep 2006 09:17:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Sep 2006 09:17:58 +0000 (UTC) Cc: juri@jurta.org, ken.manheimer@gmail.com, emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 06 11:17:57 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 1GKtXZ-0004fK-Ag for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 11:17:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKtXY-0004BF-LC for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 05:17:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKtWw-0003qX-8m for emacs-devel@gnu.org; Wed, 06 Sep 2006 05:17:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKtWp-0003hR-2V for emacs-devel@gnu.org; Wed, 06 Sep 2006 05:17:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKtWo-0003ge-0q for emacs-devel@gnu.org; Wed, 06 Sep 2006 05:17:02 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GKtWv-0002EI-24 for emacs-devel@gnu.org; Wed, 06 Sep 2006 05:17:09 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1GKtWf-0006iz-BX; Wed, 06 Sep 2006 05:16:53 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 99B611C4D3A4; Wed, 6 Sep 2006 11:15:46 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Wed, 06 Sep 2006 04:49:23 -0400") 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:59429 Archived-At: 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. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum