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: Fri, 12 Mar 2010 23:17:56 +0100 Message-ID: <4B9ABD94.40501@googlemail.com> References: <4B901912.3090705@googlemail.com> <83fx4f2lrw.fsf@gnu.org> <4B917E3F.3040605@googlemail.com> <833a0d4ydq.fsf@gnu.org> <4B92D217.7090909@googlemail.com> 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 1268483836 11665 80.91.229.12 (13 Mar 2010 12:37:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2010 12:37:16 +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 Sat Mar 13 13:37:12 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 1NqQad-0000Zb-Vg for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Mar 2010 13:37:12 +0100 Original-Received: from localhost ([127.0.0.1]:34191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqQad-0008J0-GD for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Mar 2010 07:37:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NqDHa-0003T1-Bm for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2010 17:24:38 -0500 Original-Received: from [140.186.70.92] (port=49087 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqDHY-0003Sq-GC for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2010 17:24:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NqDHX-0004FF-E0 for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2010 17:24:36 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57945) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NqDHX-0004FB-CD for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2010 17:24:35 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NqDCA-0000eF-GM; Fri, 12 Mar 2010 17:19: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: Fri, 12 Mar 2010 22:19:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: followup 5683 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 5683-submit@debbugs.gnu.org id=B5683.12684322852482 (code B ref 5683); Fri, 12 Mar 2010 22:19:02 +0000 Original-Received: (at 5683) by debbugs.gnu.org; 12 Mar 2010 22:18:05 +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 1NqDBF-0000dz-4f for submit@debbugs.gnu.org; Fri, 12 Mar 2010 17:18:05 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.152]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NqDBD-0000dd-Fs for 5683@debbugs.gnu.org; Fri, 12 Mar 2010 17:18:04 -0500 Original-Received: by fg-out-1718.google.com with SMTP id l26so669722fgb.15 for <5683@debbugs.gnu.org>; Fri, 12 Mar 2010 14:17:58 -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=I7yssV/avt8+BhDinjcks+WVd0AyIxaB3jnrbvuRsvw=; b=bxKIf9JUktjdXEBAGuWYXyaxHUe6TFQXt56smalakqrVWRI+xQ4dfpIUCs2Vnukxet MzDomLJj9aEcyf+0Ivfw5yiVxleUG5J1eMlcZz6I8flY2wD6QCh+9wISKeUiligcytC8 z4j6zg8zc+osfdYy5GX/WqJGMRnH7P1XCcOrE= 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=fn58QWQCutd6/XQJnM7RrV09u3nkfQIFnqmRKyc2q30P/W5SYw3ym2BQlFKY0A+pON nZBHvK7RKnWOdH3hEdT9Ov5e7Y41NPjPQxrIAod8s7i6plTeEAvMiDbt52SYE1pRKRNj cN5C2kMduFHcu7maKnJg9gxh2kzkWZWBEd9KQ= Original-Received: by 10.102.174.3 with SMTP id w3mr367675mue.16.1268432278776; Fri, 12 Mar 2010 14:17:58 -0800 (PST) Original-Received: from darkstar.fritz.box (dslb-094-216-053-182.pools.arcor-ip.net [94.216.53.182]) by mx.google.com with ESMTPS id n7sm7170351mue.45.2010.03.12.14.17.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Mar 2010 14:17:58 -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: <4B92D217.7090909@googlemail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 12 Mar 2010 17:19:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sat, 13 Mar 2010 07:37:00 -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:35548 Archived-At: A few days ago I found a misbehavior related to the list-color-display command. I have made further investigations and finally figured out, that the problem is caused by the build process, I have used (by accident). When I run the build commands as descibed in nextstep/INSTALL everything works fine: ./configure --with-ns make make install And this is the command sequence which builds a Emacs.app with the described problem: ./configure --with-ns sudo make sudo make install Markus On 06/03/2010 23:07, Markus Prepens wrote: > 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".) >