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 14:21:38 +0100 Message-ID: References: <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> <835zwhfr56.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 1543412039 17197 195.159.176.226 (28 Nov 2018 13:33:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2018 13:33:59 +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 14:33:54 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 1gRzyT-0004LJ-Vq for ged-emacs-devel@m.gmane.org; Wed, 28 Nov 2018 14:33:54 +0100 Original-Received: from localhost ([::1]:47786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS00a-0002l9-HU for ged-emacs-devel@m.gmane.org; Wed, 28 Nov 2018 08:36:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRzzT-0000lt-Ef for emacs-devel@gnu.org; Wed, 28 Nov 2018 08:34:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRzmg-0004nt-Pi for emacs-devel@gnu.org; Wed, 28 Nov 2018 08:21:46 -0500 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:36418) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRzmg-0004nL-Ip; Wed, 28 Nov 2018 08:21:42 -0500 Original-Received: by mail-wr1-x434.google.com with SMTP id t3so26276039wrr.3; Wed, 28 Nov 2018 05:21:42 -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=DpRy5k5iUYPDI1wPCKZmNFBvG+C0dtRfkt+m+9xEqSY=; b=uQnKnKDWPllEE2SUi0yttOJvxS4FrIJ5h/W4wOT240EtPhckWfCKoFYlBbmzOB2BWd J6NUmw0XA2tDmNu2S0RqEomZms0Im6nXM4L8G3OyJ7cvkgFj6yqmdg3d2pruK7ilRsTV OViZADanP8KIxvW45mFBr4FKGuZtE9/xq6uA1TCNiP+lz7Or8LYLH7Kd96/IErj8uVn+ Lq2zvDQn7qCBXKfg6PvZS1N5KhE29X0nM2xkL3cHAnAOxjbw5nIIuFbEdkEd5Hv8d1GS 71tStkJFX+2eT8XV5rry6yTtjaFyTjBgRVcrtY19pQtVFPHf4VHkVl+c/A1AkmUuwH15 DH/A== 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=DpRy5k5iUYPDI1wPCKZmNFBvG+C0dtRfkt+m+9xEqSY=; b=Juf3gUCHbuq5GHompPQpxSPs1kDFHaHAcvlum2V8AWaTVYbLgY04dthmxJW4QVk453 mWCp+azu/PQPbr0MZy7qfizzKBZ4OXL82bWHYnGsHquMUhTt+rZNGZz6HT0g9bumtYcj Pdg3NKkGwPCPFbRkeEzi08eDSBe9BhCFoJSLZjdfEKR01PTZFwngS2M2cvOYXNum6KZV utL9SjAU4Mi2IOCpuQIzmX6xLVhA++egoKj1AihLyal2xWb3zrZv4WIN0Dgh1tQ+ZwRA i1ycDKP9VAjrY+XoTmUwuCwVy1P+p1gm/nuFNTDVXI6DeMq5Yb6nh9NA/u1W3XodJe3X PbLg== X-Gm-Message-State: AA+aEWa3PLi2p/Ju9UOHHHM012gXwcdSYl2x5+MRRAh4JEaCVV6VCD4A nKkbE78XMZFv+BmHzHI4/TzRX+Xo X-Google-Smtp-Source: AFSGD/Vj+YkiKrY0+kL6f+OvqME2eJ/TmmZaRujwZG13OqunAYoP4yXG+aUul09JOLEyzUFZvl7iCw== X-Received: by 2002:adf:e18d:: with SMTP id k13mr31867488wri.36.1543411300944; Wed, 28 Nov 2018 05:21:40 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id x12sm8429770wrt.20.2018.11.28.05.21.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Nov 2018 05:21:40 -0800 (PST) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <835zwhfr56.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 28 Nov 2018 12:11:33 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::434 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:231487 Archived-At: Eli Zaretskii writes: >> From: Robert Pluim >> Cc: emacs-devel@gnu.org >> Date: Wed, 28 Nov 2018 10:56:23 +0100 >>=20 >> > I still wonder why they don't do this with other face colors. Is >> > ns_lisp_to_color expensive or something? >>=20 >> Don=CA=BCt do what with other face colours? > > Why they don't do the same with face colors as they do with > FRAME_BACKGROUND_PIXEL, i.e. convert to RGBA and store the RGBA in the > face colors, instead of the indices. Because then every time they want to do something with a face colour, they'd have to convert it from RGBA, allocate the corresponding NSColor, use it, destroy it etc. Instead the code creates the 'native' color object, and stores it in the face, so no conversions are necessary. Robert