all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dave Goel <deego3@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, Dave Goel <deego3@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Faces: How to clear an attribute while continuing to inherit other attributes?
Date: Thu, 10 Oct 2019 11:59:51 -0400	[thread overview]
Message-ID: <CAOCW0DhC6_HAEqHwKpJChfhEotrCdMRo9WP4eRAKdgPKw5SkMQ@mail.gmail.com> (raw)
In-Reply-To: <CAOCW0DiGc0FM+utRcGULzwxQ5f5UNvYY0StpcNcv81S-8dtGCQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

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 <deego3@gmail.com> 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.
>
>
>

[-- Attachment #2: Type: text/html, Size: 1986 bytes --]

  reply	other threads:[~2019-10-10 15:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-10  2:42 Faces: How to clear an attribute while continuing to inherit other attributes? Dave Goel
2019-10-10  8:09 ` Eli Zaretskii
2019-10-10 15:56   ` Dave Goel
2019-10-10 15:59     ` Dave Goel [this message]
2019-10-10 17:37     ` Eli Zaretskii
2019-10-10 17:50       ` Dave Goel
2019-10-10 18:07         ` Eli Zaretskii
2019-10-10 18:26           ` Dave Goel
2019-10-10 18:39             ` Eli Zaretskii
     [not found]           ` <47578dbd-71ea-cb02-c337-96fb18af1915@lanl.gov>
     [not found]             ` <83k19cqvdi.fsf@gnu.org>
2019-10-11  0:56               ` Dave Goel
2019-10-11  1:13                 ` Dave Goel
2019-10-11  8:37                   ` Eli Zaretskii
2019-10-11  8:36                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOCW0DhC6_HAEqHwKpJChfhEotrCdMRo9WP4eRAKdgPKw5SkMQ@mail.gmail.com \
    --to=deego3@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.