From: Chong Yidong Date: Sat, 31 Dec 2005 01:58:07 +0000 (+0000) Subject: * cus-theme.el (custom-new-theme-mode): Use cus-edit faces. X-Git-Tag: emacs-pretest-22.0.90~4955 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8314bdb83640870e854e7de21ce6244f5f45c145;p=emacs.git * cus-theme.el (custom-new-theme-mode): Use cus-edit faces. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 54bb2ee6687..d8faabbdac9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2005-12-30 Chong Yidong + + * cus-theme.el (custom-new-theme-mode): Use cus-edit faces. + 2005-12-30 Richard M. Stallman * custom.el (custom-load-themes): Function deleted. diff --git a/lisp/cus-theme.el b/lisp/cus-theme.el index 43cf96e34fa..1e7fcfc4a5a 100644 --- a/lisp/cus-theme.el +++ b/lisp/cus-theme.el @@ -35,7 +35,20 @@ "Major mode for the buffer created by `customize-create-theme'. Do not call this mode function yourself. It is only meant for internal use by `customize-create-theme'." - (set-keymap-parent custom-new-theme-mode-map widget-keymap)) + (set-keymap-parent custom-new-theme-mode-map widget-keymap) + (set (make-local-variable 'widget-documentation-face) 'custom-documentation) + (set (make-local-variable 'widget-button-face) custom-button) + (set (make-local-variable 'widget-button-pressed-face) custom-button-pressed) + (if custom-raised-buttons + (set (make-local-variable 'widget-mouse-face) custom-button)) + + ;; When possible, use relief for buttons, not bracketing. This test + ;; may not be optimal. + (when custom-raised-buttons + (set (make-local-variable 'widget-push-button-prefix) "") + (set (make-local-variable 'widget-push-button-suffix) "") + (set (make-local-variable 'widget-link-prefix) "") + (set (make-local-variable 'widget-link-suffix) ""))) (put 'custom-new-theme-mode 'mode-class 'special) (defvar custom-theme-name)