From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: CHENG Gao Newsgroups: gmane.emacs.devel Subject: Info about color-values need be revised Date: Sun, 16 Aug 2009 18:14:29 +0800 Organization: cyberhut.org Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1250417913 25588 80.91.229.12 (16 Aug 2009 10:18:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Aug 2009 10:18:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 16 12:18:26 2009 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 1Mccoi-0000rV-HZ for ged-emacs-devel@m.gmane.org; Sun, 16 Aug 2009 12:18:24 +0200 Original-Received: from localhost ([127.0.0.1]:33491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mccof-0000Ah-Oq for ged-emacs-devel@m.gmane.org; Sun, 16 Aug 2009 06:18:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mccnz-00009Q-Vz for emacs-devel@gnu.org; Sun, 16 Aug 2009 06:17:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mccnt-00004v-9C for emacs-devel@gnu.org; Sun, 16 Aug 2009 06:17:37 -0400 Original-Received: from [199.232.76.173] (port=47561 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mccnr-0008WS-TC for emacs-devel@gnu.org; Sun, 16 Aug 2009 06:17:32 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:42197 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mccnr-0005fP-7G for emacs-devel@gnu.org; Sun, 16 Aug 2009 06:17:31 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Mccnm-0007sv-HG for emacs-devel@gnu.org; Sun, 16 Aug 2009 10:17:26 +0000 Original-Received: from 122.192.41.48 ([122.192.41.48]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Aug 2009 10:17:26 +0000 Original-Received: from chenggao by 122.192.41.48 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Aug 2009 10:17:26 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 122.192.41.48 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (darwin) Cancel-Lock: sha1:XNxJjT4J8o18DK5hKufx9kWILCk= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:114293 Archived-At: In ELISP manual, info about color-values is not true any more with NS port merged. ,----[ (info "(elisp)Color Names") ] | -- Function: color-values color &optional frame | This function returns a value that describes what COLOR should | ideally look like on FRAME. If COLOR is defined, the value is a | list of three integers, which give the amount of red, the amount | of green, and the amount of blue. Each integer ranges in | principle from 0 to 65535, but some displays may not use the full | range. This three-element list is called the "rgb values" of the | color. | | If COLOR is not defined, the value is `nil'. | | (color-values "black") | => (0 0 0) | (color-values "white") | => (65280 65280 65280) | (color-values "red") | => (65280 0 0) | (color-values "pink") | => (65280 49152 51968) | (color-values "hungry") | => nil `---- It says return value is (R G B). In NS port, color-values uses function xw-color-values: ,----[ C-h f xw-color-values RET ] | xw-color-values is a built-in function in `nsfns.m'. | | (xw-color-values color &optional frame) | | Return a description of the color named color. | The value is a list of integer RGBA values--(RED GREEN BLUE ALPHA). | These values appear to range from 0 to 65280; white is (65280 65280 65280 0). | The optional argument frame is currently ignored. | | [back] `---- The return value is (R G B Alpha). So the info manual need be revised.