From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Identifying the face between STRETCH and right fringe. Date: Wed, 28 Nov 2018 10:56:23 +0100 Message-ID: References: <83h8gbis2d.fsf@gnu.org> <83zhu0f6tt.fsf@gnu.org> <83sgzrgb1f.fsf@gnu.org> <83r2fbg5bq.fsf@gnu.org> <83lg5jfs9o.fsf@gnu.org> <83a7luhnid.fsf@gnu.org> <838t1ehi6v.fsf@gnu.org> <831s76gxkq.fsf@gnu.org> <83h8g1fzdr.fsf@gnu.org> <83a7ltfsda.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1543398877 27514 195.159.176.226 (28 Nov 2018 09:54:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2018 09:54:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 28 10:54:32 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gRwYB-00070v-Tx for ged-emacs-devel@m.gmane.org; Wed, 28 Nov 2018 10:54:32 +0100 Original-Received: from localhost ([::1]:46867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRwaI-0000oO-7m for ged-emacs-devel@m.gmane.org; Wed, 28 Nov 2018 04:56:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRwa9-0000o5-Uq for emacs-devel@gnu.org; Wed, 28 Nov 2018 04:56:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRwa4-00055a-6H for emacs-devel@gnu.org; Wed, 28 Nov 2018 04:56:33 -0500 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:43488) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRwa3-00054B-7w; Wed, 28 Nov 2018 04:56:27 -0500 Original-Received: by mail-wr1-x432.google.com with SMTP id r10so25593225wrs.10; Wed, 28 Nov 2018 01:56:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=3BFhpl9FwV2p7nBk2GWATp49KW7Ajj5XwIe2IOpdNmQ=; b=rn5lveWg7Jr9QDyO2viwj/bSoGmrymZ/7YPYgyfElsqpQP7dzZTpqMWYUbSJpurizR +BVqYe6vBNkToJCfSueGVuIqYMQqxf9ok5qJWcNMyS7hOcCCyXbsIxgt7EmK0rkBiree rfTAfbspigMryodkbNza05k4boRkckTNipriLW0pHdTb7HyRauh6qyMFF4xEuZPeKXaX xidWb6+e8iOU2ax4kCb9vGvNdFzgCyg84+BkwyEi3mSUJudBiR6Z9JMdsth8PI5HBnoc 2DDyMtRc8K9qbQXky2nXdh57c5s0U3YLikdDANF67yaDRdYdw/9wWwuXSb1hi2JEwfYK yL6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=3BFhpl9FwV2p7nBk2GWATp49KW7Ajj5XwIe2IOpdNmQ=; b=ecZViVyHl/D5/o+coe/CVZ0Uw3Z+UUgxj81to7llZnKx73A2kP7WvDP2Mmb0pqqguN dCTNJE0qjBwIQyoFhbOi2C+TEgoqm3BYwSJahUxkB8HBiOyC2Llr76biRW8b9xBBOm5G jWsuqaspjGK0ni5eREpu4sqaaY2NvefQ3OponhQKyafTUFVQOe9x9z4orcau/4XFbCr/ qMcRoxGZmey/jo4D4DXnGXLky4fNpocZjCqM3bHypKf0j/fFabk5n7SFKxP0W4hkLC18 baPhiloqAg17BrNz5OtPGroDp5rmQpQUSkCvG707PUwMh2UdxoW9I4Egmwg9LbxyrQgz j9sg== X-Gm-Message-State: AA+aEWa5o/9oofOaWqJDe7K7gjRVSmULmmb3Duv637Jkr1ijc3lroeP4 s/nM2DJ7WJIppRwfr81eCsprMxHv X-Google-Smtp-Source: AFSGD/W0epMXQaw8bwDJZYkXcUBioh5zRuAW7vvoSKwMw/NhwCPg5U28emTtfghHle9/Zn7TuSuiNQ== X-Received: by 2002:adf:f504:: with SMTP id q4mr32011691wro.321.1543398985628; Wed, 28 Nov 2018 01:56:25 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id q185sm2685137wmg.14.2018.11.28.01.56.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Nov 2018 01:56:24 -0800 (PST) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <83a7ltfsda.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 28 Nov 2018 11:45:05 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::432 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231482 Archived-At: Eli Zaretskii writes: >> From: Robert Pluim >> >> > So where does the RGBA value in FRAME_BACKGROUND_PIXEL come from? >> > >> > Can you answer this question? >>=20 >> It=CA=BCs set by the NS version of x_set_background_color, so it=CA=BCs = correct, >> just not the same format as the face background colour. > > So they call ns_lisp_to_color once and store the result? Well, they allocate an entry in the frame color_table, store the result of ns_lisp_to_color there, and then use an index into the table from there on. And convert it to RGBA and store it in FRAME_BACKGROUND_PIXEL. > I still wonder why they don't do this with other face colors. Is > ns_lisp_to_color expensive or something? Don=CA=BCt do what with other face colours? As far as I can tell the same thing is done for the foreground (and ns_lisp_to_color does look expensive, as it parses colour names and RGB specs and probably more). Robert