Hello,

On Sun 27 Jul 2025 at 06:25pm +01, Sean Whitton wrote:

> Hello,
>
> On Sun 27 Jul 2025 at 05:18pm GMT, Ihor Radchenko wrote:
>
>> Sean Whitton <spwhit...@spwhitton.name> writes:
>>
>>>> Looking at it now, it probably is safer to just ':inherit fixed-pitch'. It
>>>> might not look nice on some platforms, though this should be fixed
>>>> elsewhere. The goal is to avoid combining outline and bitmap fonts, if
>>>> possible, especially given the default white background.
>>>
>>> The Emacs maintainers are pretty clearly against doing that.
>>
>> From my perspective, we should go for whatever could improve user
>> experience. The platform-specific inheritance appears to be strictly
>> better for non-Windows/Mac users. Or are there any downsides?
>
> I don't think so.  I'll go ahead and install it, conditional on the
> user's platform.

Hmm, I'm not sure how to do this.

For example, with

    (defface org-hide
      '((((background light)) (:foreground "white"))
        (((background dark)) (:foreground "black")))
      "Face used to hide leading stars in headlines.
    The foreground color of this face should be equal to the background
    color of the frame."
      :group 'org-faces)

the best I can come up with is

    (defface org-hide
      '((((background light) (type ns)) (:foreground "white"))
        (((background light) (type w32)) (:foreground "white"))
        (((background dark) (type ns)) (:foreground "black"))
        (((background dark) (type w32)) (:foreground "black"))
        (((background light)) (:foreground "white" :inherit fixed-pitch))
        (((background light)) (:foreground "white" :inherit fixed-pitch)))
      "Face used to hide leading stars in headlines.
    The foreground color of this face should be equal to the background
    color of the frame."
      :group 'org-faces)

which is not good code.  Is there any alternative?

-- 
Sean Whitton

Reply via email to