emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#13278: closed (24.3.50; Attributes aren't inherite


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#13278: closed (24.3.50; Attributes aren't inherited in a copied face across frames)
Date: Mon, 31 Dec 2012 00:18:02 +0000

Your message dated Mon, 31 Dec 2012 09:16:31 +0900
with message-id <address@hidden>
and subject line Re: bug#13278: 24.3.50; Attributes aren't inherited in a 
copied face across frames
has caused the debbugs.gnu.org bug report #13278,
regarding 24.3.50; Attributes aren't inherited in a copied face across frames
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
13278: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13278
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.50; Attributes aren't inherited in a copied face across frames Date: Wed, 26 Dec 2012 10:56:08 +0900 User-agent: Gnus/5.130006 (真 Gnus v0.6) Emacs/24.3.50 (i686-pc-cygwin)
(This happens in not only 24.3.50 but also at least 24.2.)
Say copy the built-in face `bold' to `my-bold' as follows:

(copy-face 'bold 'my-bold)
 = my-bold
(face-attribute 'my-bold :weight)
 => bold

That is normal.  However, if `(face-attribute ...)' is done again
in a newly created frame (by `C-x 5 2'), it returns `unspecified',
i.e., that is not a bold face in the new frame.  I've tested it in
only Cygwin Emacs, sorry.

In GNU Emacs 24.3.50.1 (i686-pc-cygwin, X toolkit, Xaw3d scroll bars)
 of 2012-12-26 on localhost
Bzr revision: 111328 address@hidden
Windowing system distributor `The Cygwin/X Project', version 11.0.11301000
Configured using:
 `configure '--verbose' '--with-x-toolkit=lucid' '--without-imagemagick'
 '--without-dbus' '--without-gconf' '--without-gsettings''



--- End Message ---
--- Begin Message --- Subject: Re: 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 <address@hidden> wrote:
> Katsumi Yamaoka <address@hidden> 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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]