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:00:53 +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> <83y39dg2mh.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1543395547 24312 195.159.176.226 (28 Nov 2018 08:59:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2018 08:59:07 +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 09:59:02 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 1gRvgU-000694-65 for ged-emacs-devel@m.gmane.org; Wed, 28 Nov 2018 09:59:02 +0100 Original-Received: from localhost ([::1]:46642 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRvia-0002Z5-JL for ged-emacs-devel@m.gmane.org; Wed, 28 Nov 2018 04:01:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRviQ-0002YU-Nj for emacs-devel@gnu.org; Wed, 28 Nov 2018 04:01:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRviL-0008Nb-8B for emacs-devel@gnu.org; Wed, 28 Nov 2018 04:01:02 -0500 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:38570) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRviK-0008Mk-Tm; Wed, 28 Nov 2018 04:00:57 -0500 Original-Received: by mail-wm1-x336.google.com with SMTP id k198so1706874wmd.3; Wed, 28 Nov 2018 01:00:56 -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; bh=4dZQWBIfNyE1or9B2NYKDwgfPanEU1dwO72fwMiKlLM=; b=ufGQjB550JQudxbHdvxRLVySx5B+oNgDSlFFw2diWzm1w96kVGd0KT74HW0E8d5Sb2 oXvUJdzmtu8Pxic2FQ6ez+STp4ydQxrHqtiZ4gFv7mNBHz4dVPU6pspLwsK0d8b7YtCc DtCiXzkq21SxIu1FdlDygWQfdhpaOvb6IhRrBOpAYQVpX6wJcwmDZLrHMRmZqXClgrti i59zobOtup8l0BS9hIx1cKvUOZ+7IoLNgcOZWIhMUh95B8ol0RRsTu1SHZMiexuNgn0l 7GwPfrS7/rOTs8AaFeTnvJG+9Qj45WgofZawEGeKHjg7YnfXyQN9mWd8DZ5xvRJu2oyp X2Vg== 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; bh=4dZQWBIfNyE1or9B2NYKDwgfPanEU1dwO72fwMiKlLM=; b=IsB9ZWRYGJKifRG8/6GyPF3p74QSAMt6e4tv6Mr/U1ZLxuDNtDL1z0Rjsz/Sf0R8in rP5MXlUlEKay72fbVaXayrMMlicxb0MX/moJb/Hu9vwxUTGYHb2FOrwWfRFK+qsA023V HZU3l5iGN9A8YPvoBZC2JviMJ6AOaUHS9ZkotpHMe8NgiX0WtRdC9vovP5IJ+eVEQI+G gIIUmixslyDIcHgGGzQYoEhb4naXsdL2OcZL81iJLzmwQ/dyFhnMjMJopYMlEarXZFwE 43k3TYUFiCjNNf4x+U/p+JBDhuvZTzpGpyD+x8jG/pXBsGR5mZj3tq5ssp7Pee7LRl2h IYnw== X-Gm-Message-State: AA+aEWZ9VowYJSCDR54gEYCnu1cbAbeGlivI69FIXRvwX6UAB7L6SvKe MFHEZRRaW/y/UenGgjGqsuA5PQCe X-Google-Smtp-Source: AFSGD/VyXr+uhsERd7WpMu1mYxgPxOICQuiN1ZY6yobrE08iKb9/WashzZqnmSfg8/oDBr0EUFL63Q== X-Received: by 2002:a7b:c853:: with SMTP id c19mr1783901wml.61.1543395655300; Wed, 28 Nov 2018 01:00:55 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id t5sm1699094wmd.15.2018.11.28.01.00.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Nov 2018 01:00:54 -0800 (PST) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <83y39dg2mh.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 28 Nov 2018 08:03:34 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::336 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:231478 Archived-At: Eli Zaretskii writes: >> From: Robert Pluim >> Date: Tue, 27 Nov 2018 20:38:05 +0100 >> 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? > > Basically, because we clear rectangles on display using the frame's > background color. > > Historically, once upon a time, the frame's background was not > necessarily identical to that of the default face. And given that we > already have the color recorded in the frame, it is less expensive to > access that than look up the default face, which might involve > accessing face-remapping-alist etc. Finally, the frame's face cache, > which is where we look up faces, is reset from time to time, whereas > the frame's background color is always valid. In this particular case extend_face_to_end_of_line has already done: default_face = FACE_FROM_ID_OR_NULL (f, lookup_basic_face (it->w, f, DEFAULT_FACE_ID)); so there'd be no additional cost, but that _OR_NULL bit precludes always using the default face. Robert