diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2006-01-04 15:56:08 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2006-01-04 15:56:08 +0000 |
commit | 73e60f534c975124124973b03fa76072a769b6c6 (patch) | |
tree | 0387db4b493293c76b65e5e0c93e92787db0a3ed /lisp/wid-edit.el | |
parent | 205c40f84bf25827c95e1eeb136faaa4c85a8bcb (diff) | |
download | emacs-73e60f534c975124124973b03fa76072a769b6c6.tar.gz |
* cus-edit.el (custom-reset-menu, custom-reset, Custom-mode-menu)
(custom-variable-menu, custom-face-menu, custom-group-menu)
(custom-buffer-create-internal): Change "Reset" to "Show".
Reorder menu items.
(custom-link): New face for Info links.
(custom-buffer-create-internal, custom-manual): Use it.
* wid-edit.el (widget-default-mouse-face-get): New function.
(widget-specify-button): Handle mouse-face like button-face.
* custom.el (load-theme): Clear old theme settings if reloading.
Diffstat (limited to 'lisp/wid-edit.el')
-rw-r--r-- | lisp/wid-edit.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index cb55cfb5429..0735c467439 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -403,7 +403,8 @@ new value.") ;; We want to avoid the face with image buttons. (unless (widget-get widget :suppress-face) (overlay-put overlay 'face (widget-apply widget :button-face-get)) - (overlay-put overlay 'mouse-face widget-mouse-face)) + (overlay-put overlay 'mouse-face + (widget-apply widget :mouse-face-get))) (overlay-put overlay 'pointer 'hand) (overlay-put overlay 'follow-link follow-link) (overlay-put overlay 'help-echo help-echo))) @@ -1391,6 +1392,7 @@ The value of the :type attribute should be an unconverted widget type." :offset 0 :format-handler 'widget-default-format-handler :button-face-get 'widget-default-button-face-get + :mouse-face-get 'widget-default-mouse-face-get :sample-face-get 'widget-default-sample-face-get :delete 'widget-default-delete :copy 'identity @@ -1535,6 +1537,14 @@ If that does not exists, call the value of `widget-complete-field'." (widget-apply parent :button-face-get) widget-button-face)))) +(defun widget-default-mouse-face-get (widget) + ;; Use :mouse-face or widget-mouse-face + (or (widget-get widget :mouse-face) + (let ((parent (widget-get widget :parent))) + (if parent + (widget-apply parent :mouse-face-get) + widget-mouse-face)))) + (defun widget-default-sample-face-get (widget) ;; Use :sample-face. (widget-get widget :sample-face)) |