From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ken Manheimer" Newsgroups: gmane.emacs.devel Subject: Re: cursor doesn't show through transparent images in emacs 22, unlike emacs 21 Date: Sun, 27 Aug 2006 16:37:30 -0400 Message-ID: <2cd46e7f0608271337t74b62411g1b98e7fecfb7c03b@mail.gmail.com> References: <2cd46e7f0608181622w23c7d2b0h9b963deeadfd1c06@mail.gmail.com> <85zmdx2o5n.fsf@lola.goethe.zz> <2cd46e7f0608220645i4c9677d3mf778b3ded10dba07@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1156711159 22502 80.91.229.2 (27 Aug 2006 20:39:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Aug 2006 20:39:19 +0000 (UTC) Cc: emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 27 22:39:17 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 1GHROQ-0002Gr-IX for ged-emacs-devel@m.gmane.org; Sun, 27 Aug 2006 22:38:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHROQ-0006JJ-0j for ged-emacs-devel@m.gmane.org; Sun, 27 Aug 2006 16:38:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GHRNt-0006Bo-UH for emacs-devel@gnu.org; Sun, 27 Aug 2006 16:37:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GHRNs-0006B9-7N for emacs-devel@gnu.org; Sun, 27 Aug 2006 16:37:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GHRNs-0006B4-2O for emacs-devel@gnu.org; Sun, 27 Aug 2006 16:37:32 -0400 Original-Received: from [66.249.82.225] (helo=wx-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GHRWf-000630-Jf for emacs-devel@gnu.org; Sun, 27 Aug 2006 16:46:37 -0400 Original-Received: by wx-out-0506.google.com with SMTP id i26so1572567wxd for ; Sun, 27 Aug 2006 13:37:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lo50bz9A4c+bHxulalTe/9O7MKkQ1i+1DVCOJd8290vaqiHN1aV7Dap1VcoCYHLJsESeO0K8DcFLrAfHsCV0asl8gaoaDJStUvljUwYhUj1jZcYoEvY1YBg+Dc8xh/x70L1+LTA1QljP0nvUE4KmheqzSUS/JgOvIvKK/0J4cHU= Original-Received: by 10.90.83.14 with SMTP id g14mr168136agb; Sun, 27 Aug 2006 13:37:30 -0700 (PDT) Original-Received: by 10.90.105.4 with HTTP; Sun, 27 Aug 2006 13:37:30 -0700 (PDT) Original-To: rms@gnu.org In-Reply-To: Content-Disposition: inline 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:58949 Archived-At: On 8/27/06, Richard Stallman wrote: > > I think this means that if the image blocks out the background color, > > then the cursor won't appear. Is that correct? I think that is a problem. > > Maybe -- but it's not a new problem. It's the same as it was in 21.x, and > I don't recall any reports of that behaviour being a problem. > > How could it possibly not be a problem? Is it that nobody uses > non-transparent images? Nobody cares about seeing the cursor in buffers > that use non-transparent images? i just experimented, filling in the transparent part of one of my icons with a solid color. the cursor still shows in that region, instead of that color. naturally figuring i made a mistake (as those of you reading this probably do), i looked at the image with something else, and the solid color showed where i put it. i started twiddling with the image and, doing an (clear-image-cache) after each change, discovered that if i made the top-left and bottom-right corner pixels transparent, the solid color showed as it should. putting the solid color in one or the other of those corners, however, causes emacs to treat it as transparent, at least as far as showing the cursor in it. (a bit more experimenting shows that the combinations of corners to qualify a solid corner for treatment as transparent is a bit more elaborate. i'd like to see the algorithm, but satisfying that curiousity is not sufficient reason to get acquainted with the display system. this behavior certainly doesn't satisfy the principle of least surprise, and deserves some documentation, if it doesn't already have it.) the upshot is that the small glyphs will benefit from kim's change, even if they lack transparency, with the cursor color showing instead of the color that occupies some combination of the corners - or maybe some other criteria, who knows. -- ken ken.manheimer@gmail.com http://myriadicity.net