[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13278: 24.3.50; Attributes aren't inherited in a copied face across
From: |
Katsumi Yamaoka |
Subject: |
bug#13278: 24.3.50; Attributes aren't inherited in a copied face across frames |
Date: |
Mon, 31 Dec 2012 09:16:31 +0900 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Chong Yidong <cyd@gnu.org> wrote:
> Katsumi Yamaoka <yamaoka@jpl.org> writes:
>> Since at least 20.7, I verified. Perhaps is the present behavior
>> the spec?
> There is no "spec", but it's more or less expected behavior.
Ok. Though I cannot imagine using such a strange function usefully.
>>> Something to do with the FRAME argument of both these functions,
>>> I imagine.
>> So far I didn't find the way to make `my-bold' always bold by
>> fiddling them.
> May I ask why you are trying to use `copy-face' instead of `defface'?
I've been using it conveniently since the face feature was introduced
in Emacs. For example, it's handy when I want a face of which only
the color differs from the built-in one:
(copy-face 'bold 'orange-bold)
(set-face-foreground 'orange-bold "Orange")
Of course doing it by defface is not so troublesome, so I can live
without copy-face.
> As the docstring of `copy-face' indicates, it is mostly intended for
> internal usage,
Oh, I didn't notice the docstring having changed recently. I must
close this thread. Thanks anyway.
> and you are likely to screw up the face's customization
> data if you call it directly. If you give more details about the
> use-case, that would be good.