From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.pretest.bugs,gmane.emacs.devel Subject: Font-lock.el uses strange value for min-colors (Was x-display-color-cells returns wrong number) Date: Sun, 29 Feb 2004 18:01:09 +0100 Sender: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Message-ID: References: <14AB9AB8-6A0E-11D8-99DB-00039363E640@swipnet.se> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v612) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1078074236 21656 80.91.224.253 (29 Feb 2004 17:03:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Feb 2004 17:03:56 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, emacs-devel Devel Original-X-From: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Sun Feb 29 18:03:45 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AxULx-0003Hd-00 for ; Sun, 29 Feb 2004 18:03:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AxULQ-0002Zy-Ky for gebp-emacs-pretest-bug@gmane.org; Sun, 29 Feb 2004 12:03:12 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1AxULL-0002Z4-9k for emacs-pretest-bug@gnu.org; Sun, 29 Feb 2004 12:03:07 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1AxUKm-0002KE-KP for emacs-pretest-bug@gnu.org; Sun, 29 Feb 2004 12:03:04 -0500 Original-Received: from [213.115.192.53] (helo=mail2.norrnet.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AxUKE-00025s-Cb; Sun, 29 Feb 2004 12:01:58 -0500 Original-Received: from stubby.bodenonline.com (stubby.bodenonline.com [193.201.16.94]) by mail2.norrnet.net (BorderWare MXtreme Mail Firewall) with ESMTP id D1F930162B; Sun, 29 Feb 2004 18:01:49 +0100 (CET) Original-Received: from accessno42.bodenonline.com (accessno42.bodenonline.com [193.201.16.44]) by stubby.bodenonline.com (8.12.1/8.12.1) with ESMTP id i1THqQ2R022510; Sun, 29 Feb 2004 18:52:27 +0100 In-Reply-To: Original-To: Jesper Harder X-Mailer: Apple Mail (2.612) X-BeenThere: emacs-pretest-bug@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-pretest-bug-bounces+gebp-emacs-pretest-bug=gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.pretest.bugs:2241 gmane.emacs.devel:20197 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20197 > "Jan D." writes: > >>> (x-display-color-cells) => 64 >>> >>> I noticed because of the recent change in font-lock.el -- since >>> 64 < 88 I now get really ugly font-lock colours. >> >> This function does not look to have been changed for a very long time. >> It basically just returns >> DisplayCells (dpyinfo->display, >> XScreenNumberOfScreen (dpyinfo->screen)) >> >> Have you changed X server lately? > > No. `x-display-color-cells' has probably always returned 64 (it also > does that in Emacs 21.3), but I guess it just wasn't used anywhere > important before now. Well, looking at your xdpyinfo, the only thing it can return is 64. But this is not the problem you have. What you are saying is that 64 works fine as a value for min-colors in font-lock.el instead of 88. Your problem has nothing to do with x-display-color-cells. 88 is a funny value, I don't know how that value was reached, Cc:ing emacs-devel to see if anybody can help. Jan D.