From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Moore Newsgroups: gmane.emacs.devel Subject: Re: [dooglus@gmail.com: problem with transparent PNG image display] Date: Thu, 18 Jan 2007 20:01:18 +0100 Message-ID: References: <87ps9drmhn.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169146911 23523 80.91.229.12 (18 Jan 2007 19:01:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2007 19:01:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 18 20:01:48 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H7cW2-00005G-8o for ged-emacs-devel@m.gmane.org; Thu, 18 Jan 2007 20:01:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7cW3-0005ry-7c for ged-emacs-devel@m.gmane.org; Thu, 18 Jan 2007 14:01:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7cVt-0005rj-4s for emacs-devel@gnu.org; Thu, 18 Jan 2007 14:01:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7cVs-0005rX-4r for emacs-devel@gnu.org; Thu, 18 Jan 2007 14:01:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7cVr-0005rU-Vj for emacs-devel@gnu.org; Thu, 18 Jan 2007 14:01:28 -0500 Original-Received: from [66.249.92.172] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H7cVr-00005x-Bh for emacs-devel@gnu.org; Thu, 18 Jan 2007 14:01:27 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so282467ugf for ; Thu, 18 Jan 2007 11:01:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:to:cc:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type:x-sa-exim-connect-ip:x-sa-exim-mail-from:x-spam-checker-version:x-spam-level:x-spam-status:subject:x-sa-exim-version:x-sa-exim-scanned:sender; b=qz+miv7ARj2SsZMs09qYuw2eiU0h5/oiwd7HLBVsa0Z78JTCsNI9gQIOqZk7SmO13rMYMKOe66Y3I0JYOY/nPBwT8MKJGxCuFaSfcmR6elC6vGoli+eXFZW3V99imjF7DetrajpPUDCOaRIxNBBEawRzRw33GszdUQ7CmKQJ1kw= Original-Received: by 10.67.97.7 with SMTP id z7mr1737876ugl.1169146885625; Thu, 18 Jan 2007 11:01:25 -0800 (PST) Original-Received: from chrislap.local ( [89.176.28.156]) by mx.google.com with ESMTP id e33sm1418935ugd.2007.01.18.11.01.24; Thu, 18 Jan 2007 11:01:25 -0800 (PST) Original-Received: from localhost ([127.0.0.1] helo=chrislap.local) by chrislap.local with esmtp (Exim 4.63) (envelope-from ) id 1H7cVi-0001QX-Tg; Thu, 18 Jan 2007 20:01:20 +0100 Original-To: Chong Yidong In-Reply-To: <87ps9drmhn.fsf@stupidchicken.com> (Chong Yidong's message of "Wed\, 17 Jan 2007 23\:24\:04 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: dooglus@gmail.com X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on chrislap.local) 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:65282 Archived-At: Chong Yidong writes: >> From: Chris Moore >> >> Using M-x set-background-colour RET and you'll see the background >> of the image changes with the background. > > Umm, no it doesn't (check again). Hmmm, that's right. I thought I saw it change. Maybe I was doing a C-x C-v RET to get it to change. > The png code in Emacs fills in the image background with the current > frame background iff this background color is unspecified. I don't think that's quite true. The behaviour seems to be a little more complex than that. For example (where image.png is a transparent PNG in the current directory with unspecified background colour): $ emacs -Q M-x set-background-color RET blue RET C-x b xxx RET C-x i image.png RET M-x image-mode RET -> blue background, as expected. M-x set-background-color RET red RET C-x b yyy RET C-x i image.png RET M-x image-mode RET -> blue background, not red. > I think this bug should be removed from FOR-RELEASE. Someone > should, however, work on this after the release. Agreed.