Sun, 23 Sep 2007 (09:06 +0900 UTC) Stephen J. Turnbull wrote:
robert delius royar writes:
> (custom-set-faces
The following are incorrect syntax, I believe.
They should be lists with the third element t, or they will have no
effect unless you custom-save and restart XEmacs.
(User code should avoid using custom-* functions. They are hairy,
bark, "mark" lampposts, and bite the hand that feeds them.)
> '(html-helper-underline-face ((t (:underline t))))
> '(html-helper-strikethrough-face ((t (:strikethru t))))
> '(html-helper-link-face ((t (:foreground "blue"))))
> '(html-helper-significant-tag-face ((t (:foreground "salmon"))))
> '(flyspell-incorrect-face ((t (:foreground "OrangeRed" :underline
t))))
> '(flyspell-duplicate-face ((t (:foreground "Gold3" :underline
t)))))
I don't know if that is what is causing your problem, but you should
fix it.
If I bypass all the code that uses custom-set-faces, I still have to
toggle the font-lock in HTML-Mode buffers to get syntax highlighting but
not in perl or other non-psgml buffers.
Are there on-the-fly, programmatic ways to change font values used by
font-lock-enable modes? In the defun that had these errors, I also used
set-face-font which I believe is OK at the user level (which you did not
flag as a possible problem). But I did not find in the documentation
whether I could control color for fore/background or slant and the
font's heaviness. (I am using Xft. I used to have font specifiers which
worked with X11, but the fonts were not as clean as they are with Xft.)
Should I use set-face-property to do this? My experiments with it show
that I can do
(set-face-font 'default "Bitstream Vera Sans Mono-12")
and see an immediate change, but
(set-face-property 'default :size "12pt")
(set-face-property 'default :family "Vera Sans Mono")
does not lead to a change.
By the way, those values (such as '(html-helper-underline-face ((t
(:underline t)))) ) were initially copied from my ~/.xemacs/custom.el
file which was created through the customize faces menu/page. But maybe
that is what you are saying--only customize can use them. They did work
for a long time, and they still work if I toggle font-lock mode in a
buffer.
--
Dr. Robert Delius Royar Associate Professor of English
Morehead State University Morehead, Kentucky
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta