>>>> "Marcus" == Marcus Geiger
<marcus(a)antbear.org> writes:
Marcus> So where could I start looking at customize to understand
Marcus> how it works? Maybe I can fiddle with it a little... Is
Marcus> cus-face.el a starting point?
cus-edit.el, cus-face.el. wid-edit.el (if you want to see how the user
interface works). Widget has a man page, not terribly complete.
fonts.el for the font model the rest of XEmacs uses (which the
Customize programmers evidently don't like). Face manipulations
require familiarity with specifiers, see Lispref on topic Specifiers.
What I think should be tried is to migrate all custom functionality to
specifiers, using specifier tags to identify Custom-specific
specifications (such as the user's saved spec in custom.el, the most
recent custom-set specification, etc). If this were done right,
Custom specifications and set-face-*-style specifications could
coexist. I think specifier tags are also a natural way to identify
"themes" of related faces. This would allow you to specify themes for
particular specifier-locales, such as particular windows or buffers,
in a natural way. (However the UI still needs to be written.)
But the current code goes about this in a very different way. The
aproach chosen in the half-done theme implementation we have does have
the advantage of (probably) being portable to GNU Emacs with little
effort.
--
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 straight lines for? "XEmacs rules."