Fri 03 Dec 2010 10:57:32 AM UTC, original submission:
This problems occurs when using color-theme and emacs-w3m, although it may occur when color-theme interacts with other packages too. I am using Gnu Emacs 23.2.1, color-theme 6.6.0-4 installed via the Arch Linux package, and emacs-w3m-cvs 20100930-1. If I set color-theme-is-global to nil, use one of the themes that sets `widget-mouse-face' to `highlight', such as color-theme-clarity, then I get an error when starting emacs-w3m:
w3m-setup-widget-faces: Symbol widget-mouse-face may not be buffer-local
and w3m fails to load. I have checked that this happens without any of my other config, i.e. starting with nothing, loading color-theme, setting color-theme-is-global, loading w3m etc. I have worked around like so:
;; color-theme.el
(defmacro when-color-theme-is-global (prop)
"Return prop if color-theme-is-global is true.
Use this to wrap alist settings that should only be made
when color-theme-is-global is false, such as widget-mouse-face
and possibly others."
(when color-theme-is-global prop))
Then in color-theme-library.el, replace
(widget-mouse-face . highlight)
with
(when-color-theme-is-global '(widget-mouse-face . highlight))
I've attached a patch.
Jim Burton
|