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: Tue, 27 Nov 2018 20:38:05 +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> 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 1543347381 17618 195.159.176.226 (27 Nov 2018 19:36:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2018 19:36:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 27 20:36:17 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 1gRj9c-0004R3-IH for ged-emacs-devel@m.gmane.org; Tue, 27 Nov 2018 20:36:16 +0100 Original-Received: from localhost ([::1]:44197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRjBi-0004CU-9p for ged-emacs-devel@m.gmane.org; Tue, 27 Nov 2018 14:38:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRjBV-0004CL-UC for emacs-devel@gnu.org; Tue, 27 Nov 2018 14:38:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRjBR-0003ZA-NW for emacs-devel@gnu.org; Tue, 27 Nov 2018 14:38:13 -0500 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:36110) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRjBR-0003Yt-HP for emacs-devel@gnu.org; Tue, 27 Nov 2018 14:38:09 -0500 Original-Received: by mail-wr1-x434.google.com with SMTP id t3so23932467wrr.3 for ; Tue, 27 Nov 2018 11:38:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=9qzzLZa5cWeURljk6h4QM05pLmR25kO3vD95WPCSGx8=; b=W/C0buAATtvvUAsJIxhbLC3LeGJrxfCmcm5n0fACYPjdGDgecCURjs9JrdNW+HaMqP AvaFlUYhUkM5UvotvGV/0VmRcSwFVhnPsFwj7ikT0yyXuakA0hnA+WhAJbAZLpJ3sn27 09rcXXXkuTpTvL8rddt0DPVc3bA0pgGbuu1ovYpvFpTuIFi7e5cOi053ZhHQWGjP8RPB uoP2JLvaFQBkdsXVhGmLsOteGjX5Q65I7LSPHWDtHBphOvUB+nJCea9A+sWFpsmHMrhE gqew0rda4bkOae9JCcFj+HGuI4AbVKMyCMTU0IpTwJS6Ms8eIqlsovmNkxwEeSBoqvL5 u+og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=9qzzLZa5cWeURljk6h4QM05pLmR25kO3vD95WPCSGx8=; b=TQ995cov6boRqNm2r4RPxk6vZC5ZoK/4uHK50wsidbzps6u5zyhNUyBAplYJFRg29/ 7cl2a5npjFvG5oUkYnW96PxUULoIie3/zbBK73rNaFQmRkmLWYzz6FNJz7su8VApJmkz Jwir/tsrZA1mAWC2E8oKu14kgGZuiIBd3o33kJCw0R6jG5HooFs9xM98XnoCYZAfDACr sr8zbSlZllpCfjB5cQYi3JaQlp1ttbEvXGldBBb3flURmmOFx3iFkWRh5Bn7a9NX0vrn QdjkLbnmYgu4cs0L45TSJlh+vA8SdoNXcfTslZajR6kmNcqcfYRncmqilLjU9t+tkupW M20A== X-Gm-Message-State: AA+aEWabNzKsgYy+2FncxhsMs3vrau8JsGWn8EQLLXDQJVgJzmF4GYv2 JWc4PSbvMUte67eZNiucrRP8b2dw X-Google-Smtp-Source: AFSGD/W7mbPF3wu0xDrC0GYCvqjdky9aslpPFLeiBVK3Vjx/c4+TI0epSK+JUUcRioV6j5MsLi/BWQ== X-Received: by 2002:adf:c846:: with SMTP id e6mr9620701wrh.243.1543347487817; Tue, 27 Nov 2018 11:38:07 -0800 (PST) Original-Received: from rpluim-mac (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id c12sm2747403wrs.82.2018.11.27.11.38.06 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Nov 2018 11:38:06 -0800 (PST) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Robert Pluim's message of "Tue, 27 Nov 2018 20:14:14 +0100") 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:231457 Archived-At: Robert Pluim writes: > Eli Zaretskii writes: > >>> From: Robert Pluim >>> Cc: emacs-devel@gnu.org >>> Date: Tue, 27 Nov 2018 14:55:23 +0100 >>>=20 >>> >> When we get here, face->background =3D=3D 1, and FRAME_BACKGROUND_PI= XEL =3D=3D >>> >> 0xfffeffff >>> >>=20 >>> >> Looking through nsfns.m, the problem becomes obvious: the NS port us= es >>> >> indices into a color table to specify the background colour of faces, >>> >> and FRAME_BACKGROUND_PIXEL is an RGBA value. >>> > >>> > Why does NS use indices here, and not RGBA values? >>>=20 >>> Probably because NS doesn=CA=BCt really use the RGBA values directly at >>> all, but uses the indices all the time. >> >> So where does the RGBA value in FRAME_BACKGROUND_PIXEL come from? >> >>> > If no better/cleaner idea emerges, how about having an NS-specific >>> > code here that computed the it->face's background RGBA by indexing >>> > into the color table, before comparing that with >>> > FRAME_BACKGROUND_PIXEL? (showing my ignorance of redisplay) Is there a reason we need to compare with the background of the frame rather than with the background of the default face of the frame? Robert