From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Francesc Rocher" Newsgroups: gmane.emacs.devel Subject: Re: New look for Emacs-23.0 Date: Mon, 7 Jul 2008 23:28:42 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215488968 28780 80.91.229.12 (8 Jul 2008 03:49:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2008 03:49:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 08 05:50:15 2008 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 1KG4DW-0007pR-6N for ged-emacs-devel@m.gmane.org; Tue, 08 Jul 2008 05:50:14 +0200 Original-Received: from localhost ([127.0.0.1]:48148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KG4Cd-0001Nr-Gu for ged-emacs-devel@m.gmane.org; Mon, 07 Jul 2008 23:49:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFyGP-00080y-06 for emacs-devel@gnu.org; Mon, 07 Jul 2008 17:28:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFyGO-00080W-B7 for emacs-devel@gnu.org; Mon, 07 Jul 2008 17:28:48 -0400 Original-Received: from [199.232.76.173] (port=48012 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFyGN-00080S-Sb for emacs-devel@gnu.org; Mon, 07 Jul 2008 17:28:48 -0400 Original-Received: from yx-out-1718.google.com ([74.125.44.156]:64094) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KFyGN-0000UV-H8 for emacs-devel@gnu.org; Mon, 07 Jul 2008 17:28:47 -0400 Original-Received: by yx-out-1718.google.com with SMTP id 34so469011yxf.66 for ; Mon, 07 Jul 2008 14:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=EhRmoiju1zemfN/vAp4vVyeVFo1SJQ8XuBTHPUrEjrk=; b=Br4CHejNCeV7Opqljg2ccmVSkQRGmD/vxPGMrvz++W5zwnVfGcjLko4S0Y7jqe7abU x2mWloHRBvwRizSfXK0aXqnJF/vSleOnR8Gjr6B3eaKkkQghqHsQ1qM/r0/JjM4Bfi87 B43Quz9A+P0vk2rmH2PzvvvhFUv7R5mGVu/rw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=xSxa3YFVAXqYYoTGIh8pTd0tFnsMaKYnZeXXVnV4CC8QJExG9DtnvcePlSqVyaIaHa bO/J79LV2j4XYOilC2DR2eDSCF6gIEZvcgtVxtRpJrcu2TRcNyzQR4Lzy05HJFIwYKz+ o9mt0UUSlkQh+46S8zrSTU777M9ggEO0LnQ/U= Original-Received: by 10.142.166.20 with SMTP id o20mr1499632wfe.245.1215466122180; Mon, 07 Jul 2008 14:28:42 -0700 (PDT) Original-Received: by 10.142.226.6 with HTTP; Mon, 7 Jul 2008 14:28:42 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-Google-Sender-Auth: 80268d76f93c96c6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Mon, 07 Jul 2008 23:49:14 -0400 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:100444 Archived-At: On Thu, Jul 3, 2008 at 11:55 PM, Stefan Monnier wrote: >> (= (funcall 'x-display-planes) 8)) >> + "splash8.xpm" >> + "splash.xpm")))) >> + (t "splash.pbm"))) > > This code still needs to be tuned to correctly pay attention to the > color depth: testing display-planes only when we don't support SVG and > PNG doesn't make any sense. > May be what's wrong is that 'x-display-planes' is used to test whether 'splash8.xpm' or 'splash.xpm' must be displayed. I think it's wrong because both images are not so different. Judging by the name of these images, I did suppose they had different color depth. Surprisingly, I've found this: splash.xpm ************************************************** static char *splash[] = { /* width height num_colors chars_per_pixel */ " 270 217 4 1", /* colors */ ". c None", "# c #c64e3b", "a c #000000", "c c #2076c1", ************************************************** splash8.xpm ************************************************** static char * splash_xpm[] = { "270 217 4 1", " c None", ". c #C64E3B", "+ c #000000", "@ c #2076C1", ************************************************** So, in terms of color depth, what's the difference between these images? Best regards, -- Francesc Rocher