From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Prepens Newsgroups: gmane.emacs.bugs Subject: bug#5683: 23.1.93; list-colors-display doesn't show all colors Date: Sat, 06 Mar 2010 23:07:19 +0100 Message-ID: <4B92D217.7090909@googlemail.com> References: <4B901912.3090705@googlemail.com> <83fx4f2lrw.fsf@gnu.org> <4B917E3F.3040605@googlemail.com> <833a0d4ydq.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1267959689 12655 80.91.229.12 (7 Mar 2010 11:01:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 7 Mar 2010 11:01:29 +0000 (UTC) Cc: 5683@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 07 02:44:34 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1No5XT-0002NL-NQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Mar 2010 02:44:16 +0100 Original-Received: from localhost ([127.0.0.1]:54433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1No5XT-0002U1-7q for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Mar 2010 20:44:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1No2Px-0006GK-4O for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2010 17:24:17 -0500 Original-Received: from [140.186.70.92] (port=46034 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1No2Pw-0006Ft-4q for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2010 17:24:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1No2Pu-00023V-Lh for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2010 17:24:16 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49089) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1No2Pu-00023R-IU for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2010 17:24:14 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1No2AE-0002ng-Bv; Sat, 06 Mar 2010 17:08:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Markus Prepens Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Mar 2010 22:08:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5683 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5683-submit@debbugs.gnu.org id=B5683.126791324710755 (code B ref 5683); Sat, 06 Mar 2010 22:08:02 +0000 Original-Received: (at 5683) by debbugs.gnu.org; 6 Mar 2010 22:07:27 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1No29f-0002nQ-BD for submit@debbugs.gnu.org; Sat, 06 Mar 2010 17:07:27 -0500 Original-Received: from mail-fx0-f228.google.com ([209.85.220.228]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1No29e-0002nL-8g for 5683@debbugs.gnu.org; Sat, 06 Mar 2010 17:07:26 -0500 Original-Received: by fxm28 with SMTP id 28so4422247fxm.39 for <5683@debbugs.gnu.org>; Sat, 06 Mar 2010 14:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=LKoe5ozI0T814mjzEGEwcStALBwVC1qwvk66GDEvZYk=; b=BPlTbt1UNrf3LDtZpV4maG1AXpOwA7Ofwlusy6bylHrFM4E0RNoynJTKtqrdL9RfW/ T1EYMHzalqvcGlKaXY84dlvZxrg+e4vKlCKIXof44MEOmg1Bhmzd+chaHWWSYoLQSNB3 7Wvs9k6oMw+Kc7WkoJTYXzbI9IXk+vTvY51tE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=H4/oygoQHRfXyjJwbA8Kg+6DNxCF7CoSVdYafP4JqwyyPuVpbE/XDyDRpjCI3Ys2q1 V1epH2JSPyD5WuEeiBndvBhJbth3w5KYfXM8pW6T6HxrXVmzxWsiSDhWzyhEHm3obiXi 9RRPPF9/hstXKpyd7ZIVrKsuI+eht4qqdSwf4= Original-Received: by 10.223.164.165 with SMTP id e37mr3257688fay.43.1267913241270; Sat, 06 Mar 2010 14:07:21 -0800 (PST) Original-Received: from darkstar.fritz.box ([188.110.59.133]) by mx.google.com with ESMTPS id 16sm2030435fxm.7.2010.03.06.14.07.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Mar 2010 14:07:20 -0800 (PST) User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 In-Reply-To: <833a0d4ydq.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 06 Mar 2010 17:08:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sat, 06 Mar 2010 20:41:26 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35449 Archived-At: When I evaluate (defvar my-x-colors (ns-list-colors)) the complete color list is put to my-x-colors. I think your impression is right: The code is correct, but the calling order during startup might be the problem. Maybe this is a hint: Step 1: Startup Emacs with the -Q switch Step 2: Enter M-: (setq x-colors (ns-list-colors)) Step 3: Enter M-x list-colors-display and the complete list of all colors appears in the *Colors* buffer. Without step 1 and 2 the *Colors* buffer shows only 37 colors. I make further investigations, what is going on. Any hints are welcome ... Markus On 06/03/2010 10:01, Eli Zaretskii wrote: > [Please don't drop 5683@debbugs.gnu.org from the list of addressees, > so that the history of this bug is archived on the bug tracker, and > also so others could chime in to this discussion.] > >> Date: Fri, 05 Mar 2010 22:57:19 +0100 >> From: Markus Prepens >> >> Function defined-colors seems to cause the trouble. I stepped down the >> code to xw-defined-colors in file ns-win.el. It uses the list x-colors. >> It contains only 42 colors. >> >> x-colors is initialized with the return value of ns-list-colors: >> >> (defvar x-colors (ns-list-colors) >> >> What I am wondering about is that ns-list-colors returns a correct list >> of 794 colors. >> >> What is wrong with the assignment of (ns-list-colors) to x-colors? > > Nothing's wrong. I suspect that some code modifies x-colors after it > is assigned. Can you see if evaluating the following form > > (defvar my-x-colors (ns-list-colors)) > > puts the full 794-color list in my-x-colors? (To evaluate the > expression, put the cursor immediately after the right parenthesis and > type "C-x C-e".)