From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dave Goel Newsgroups: gmane.emacs.devel Subject: Re: Faces: How to clear an attribute while continuing to inherit other attributes? Date: Thu, 10 Oct 2019 11:59:51 -0400 Message-ID: References: <83tv8hrpi6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008960670594907e4d" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="75413"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Eli Zaretskii , Dave Goel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 10 18:27:11 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iIbHS-000JQE-OA for ged-emacs-devel@m.gmane.org; Thu, 10 Oct 2019 18:27:10 +0200 Original-Received: from localhost ([::1]:42070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIbHQ-0006gT-Sk for ged-emacs-devel@m.gmane.org; Thu, 10 Oct 2019 12:27:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39520) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIarI-0006Lo-EZ for emacs-devel@gnu.org; Thu, 10 Oct 2019 12:00:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIarH-0003c3-88 for emacs-devel@gnu.org; Thu, 10 Oct 2019 12:00:08 -0400 Original-Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]:34177) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIarE-0003ZL-OR; Thu, 10 Oct 2019 12:00:04 -0400 Original-Received: by mail-io1-xd36.google.com with SMTP id q1so14937628ion.1; Thu, 10 Oct 2019 09:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OMLycaDe1z5PDSLdyptEilt1WEimGPcmrr4Y/1ikEzU=; b=qYtApSQtIqpED6XXzCWzxXt9GfhryNTAYEjtnUFfMSlLukvpCYUJC/EWgKp9GBzVzN MPjP2m9VgPhDRassGQd0EfJlNSary86BNdLqOw0uI3zJ3iOS6cT8TAgaCVGPAYEw1Gr+ s7Wy8IW83UTgrT7uhiMO9XDe6MOnkqid9stF2AkF5GVkbd/cYGF876wAQEwz+1Edsbkz Oe0ktqTb7g0RhQ7fYgR8BuswyysBiPyWAYX8ceRaZPp8c9BGiBZ+SfPjMCnzkWXfQKVT Xq7fQIFJdbd0LrZtx3Kxq+6u1qGQSRv3diqjgXkU0dKGMCe4yweBpUNsaD3Rdgc3dGsH sZlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OMLycaDe1z5PDSLdyptEilt1WEimGPcmrr4Y/1ikEzU=; b=U8zwllml633pD9BqW4UJQQtTETXkWRbZY4jWQw6g5m6a7Zv2JPlKilF7bCk387bq4y PseYqv1Qh0H3Gw06xWDKHZPoMU2TaCGhG7hRVb9u+kyPd85jlO5escwt3DUBNoJZ8Ht2 rX/KZnTTsHWAU6je6XEVgLM5V97Vr3SOTyZzIfgcpb4sNpiVxJW5Ixlmx7CtJ0Col1an 7k0x/iJBujYFSx8xk6aGRqA8Kg+CReMfrZ3OD1FDplTBjhteaLCzHyIo5YwRHDxosG4P qUM6UDwS+QH5JGx1DmdGD1+BL/mIdw9CoSnmRah4h1kyx9Wen/v4ZzrUsY8nCA8JTpvl y/NA== X-Gm-Message-State: APjAAAWQ9Ds1ABpdJCod8kEKvLrSrMZk0AcWDgxAZ0sr4YtivqhS+eXP Pe0N1sxlVtaVYfXVqKRpgB61A2jrgPxvVIIOs7zMQA== X-Google-Smtp-Source: APXvYqzpCytBcEKnM9AYBYoAVWS89CDlskV7h7qLwLUgt/fEjiZN8+D+u56xACw6LEK4OJDcU35fNVDnI4W10uV3Pts= X-Received: by 2002:a6b:5404:: with SMTP id i4mr1100854iob.204.1570723202685; Thu, 10 Oct 2019 09:00:02 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d36 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:240848 Archived-At: --0000000000008960670594907e4d Content-Type: text/plain; charset="UTF-8" Indeed, that's how it works - correctly - for some attributes, example, :underlin. Setting it to nil clears anything inherited, making emacs fall back to the default. :foreground and :background go halfway towards that behavior, providing the ability to set to nil, but then treat it as 'unspecified. On Thu, Oct 10, 2019 at 11:56 AM Dave Goel wrote: > > > What do you mean by "default foreground" here? > > I mean: The foreground of the face called 'default. That's what emacs > picks the attribute from if none is matched. > It seems that the intention of allowing face A to specify an attribute as > nil is to /clear/ the inherited attribute (so that emacs can fall back upon > the default for that attribute). Unfortunately, nil seems to become > 'unspecified at the moment, which => inherit the attribute. > > > --0000000000008960670594907e4d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Indeed, that's how it works - correctly - for= some attributes, example, :underlin. Setting it to nil clears anything inh= erited, making emacs fall back to the default.=C2=A0=C2=A0
:= foreground and :background go halfway towards that behavior, providing the = ability to set to nil, but then treat it as 'unspecified.




--0000000000008960670594907e4d--