>>>> "Per" == Per Abrahamsen
<abraham(a)dina.kvl.dk> writes:
Per> "Stephen J. Turnbull" <turnbull(a)sk.tsukuba.ac.jp> writes:
> `face-spec-set' is used only by Custom
Per> Wrong. `face-spec-set' is a user visible function (from
Per> faces.el in Emacs), and has for some time been the
Per> recommended way to set faces in Gnus, if you don't want to go
Per> through the custom interface.
Huh? `face-spec-set' is user-visible, but it is also definitely part
of the Custom interface[1] despite the name. It is definitely not
capable of flexibly manipulating XEmacs specifier-based faces.
Arbitrarily moving it out of the Custom code and into faces.el doesn't
make it any less a servant of the Custom machinery. (The reason I
insist on this is that it is part of the Custom interface that I am
going to have to jump through hoops to preserve in making Custom
specifier-aware.)
I would guess that the reason it is the recommended interface in Gnus
is to keep people from using (real) face specifiers in a way that
Custom (and FSF Emacs) don't understand. (Unfortunately, that
currently includes any use of non-ISO-8859-1[2] fonts, as Custom
doesn't deal with them at all.) If Custom is going to be protected
from destroying people's faces, alternative entry points to the Custom
implementation should be protected in the same way.
In any case, people are going to be just as unhappy if `face-spec-set'
permanently resets all their backgrounds to White and their kanji
fonts to Illegible as they are when `custom-set-face' does it. This
is a good place to do the surgery in question (special-casing the
'default face).
Footnotes:
[1] `face-spec-set' is a compiled Lisp function
-- loaded from "/playpen/src/xemacs-21/lisp/faces.elc"
(face-spec-set FACE SPEC &optional FRAME)
Documentation:
[ ... ]
See `defface' for information about SPEC.
`defface' is a compiled Lisp macro
-- loaded from "/playpen/src/xemacs-21/lisp/custom.elc"
[2] And maybe other ISO-8859-X fonts masquerading as ISO-8859-1 fonts
in a non-Mule XEmacs.
--
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091
__________________________________________________________________________
__________________________________________________________________________
What are those two straight lines for? "Free software rules."