On Tue, 3 Dec 2002, joachim(a)schlosser.info wrote:
Hi Stephen, Jeff,
first of all thanks a lot for your quick answers.
> > jo> When trying to get the same coloring as in GNU Emacs, I was
> > jo> suggested to use the color-theme package. Using it, I found
> > jo> out that XEmacs seems to support fewer face types, meaning
> > jo> types of elements, than GNU Emacs.
> What do you mean 'types of elements'? can you give an example?
Well, if you look at the samples
(
http://downloads.schlosser.info/sample-emacs.html), you see some LaTeX
code. In GNU Emacs, the options and parameters to commands have a different
color to the rest of the text, whereas in XEmacs they do not, regardless of
with or without color-theme. This lead me to the conclusion that XEmacs
simply does not support as many faces as GNU. In both Emacs'es I switched on
AucTeX, of course.
XEmacs is not generally timid about creating faces.
The latex function
\documentclass[a4paper,12pt,parskip,DIV8]{scrartcl}
should fontify with \documentclass in the keyword-face, the options in
variable-name-face and the {text} in function-name-face.
See how font-lock-function-name-face is setup in emacs and xemacs.
The faces being used are controlled by font-latex-keywords-2, so you
may need to customize other faces as well.
BTW, I use the following function to help figure out which faces need to be
fixed.
(defun describe-face-at-point (&optional point)
"Return face used at point."
(interactive)
(let ((face (get-char-property (or point (point)) 'face)))
(if (listp face)
(progn
(message (format "Full value: %s" (prin1-to-string face)))
(setq face (car face))))
(hyper-describe-face face)))
This lets you see which face is being used at a particular point.
> > AFAICT color-theme is not a supported XEmacs package. If
you want
> > support, ask the color-theme maintainer or see if someone else wants
> > to support it for XEmacs.
> It is not supported as an xemacs package, but it does appear to be
> supported for xemacs. It seems to work ok for me.
Yes, I know, and it also works here. But, to stress it: My question is not
about usability of color-theme together with XEmacs, it is about the number
of faces.
But I agree, this could also be rated as a RFE rather than a bug.
Nevertheless, is it true that there are fewer faces or is there anything I
could configure (easily) to get the additional faces?
Start with the font-lock-keywords for the particular mode.
color-theme changes the appearance of faces used within a mode, but
will not change which faces are used for different parts.
-jeff