all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Dave Goel <deego3@gmail.com>
Cc: 38771@debbugs.gnu.org
Subject: bug#38771: Allow face-attribute to be 'reset, (in addition the usual 'unspecified and valid-values)
Date: Mon, 23 May 2022 12:46:15 +0200	[thread overview]
Message-ID: <87zgj8o7bc.fsf@gnus.org> (raw)
In-Reply-To: <CAOCW0Dij5VSb_2E9ehTAYSssbxjkYo_d0i1s8r_ag+gRUFW2dA@mail.gmail.com> (Dave Goel's message of "Sat, 28 Dec 2019 05:34:50 -0500")

Dave Goel <deego3@gmail.com> writes:

> Could we allow a 'reset? Where the effect of 'reset is to stop all
> chasing, and immediately render the final value as 'unspecified (so
> that emacs looks up the final value from 'default during rendering)

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Makes sense to me.  I had a brief peek at xfaces.c, and decided not to
take a stab at implementing this at this time, but if somebody else is
interested, here's the test case:

---
(defface foo '((t (:height 200 :bold t))) "")
(defface child '((t :inherit foo :height unspecified)) "")

(progn
  (pop-to-buffer "*foo*")
  (erase-buffer)
  (insert "none" (propertize "foo" 'face 'foo)
	  (propertize "child" 'face 'child)))
---

So we want to be able to say :height reset there and get a bold "child"
string in the default height.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2022-05-23 10:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-28 10:34 bug#38771: Allow face-attribute to be 'reset, (in addition the usual 'unspecified and valid-values) Dave Goel
2022-05-23 10:46 ` Lars Ingebrigtsen [this message]
2022-05-23 11:37   ` Eli Zaretskii
2022-05-23 11:58     ` Lars Ingebrigtsen
2022-07-03  9:33       ` Eli Zaretskii
2022-07-03  9:57         ` Lars Ingebrigtsen
2022-07-03 10:23           ` Eli Zaretskii
2022-07-03 10:24             ` Lars Ingebrigtsen
2022-07-03 15:40               ` Dave Goel
2022-08-02 11:13                 ` Lars Ingebrigtsen

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=87zgj8o7bc.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=38771@debbugs.gnu.org \
    --cc=deego3@gmail.com \
    /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.