for overlay face, if it exists.
* cus-edit.el (custom-manual, custom-add-see-also)
(custom-add-parent-links, custom-group-link): Add :pressed-face
property to links.
2006-02-14 Chong Yidong <cyd@stupidchicken.com>
+ * wid-edit.el (widget-button-click): Use :pressed-face property
+ for overlay face, if it exists.
+
+ * cus-edit.el (custom-manual, custom-add-see-also)
+ (custom-add-parent-links, custom-group-link): Add :pressed-face
+ property to links.
+
* files.el (hack-local-variables): Remove ignored variables before
checking if any variables need setting.
:help-echo "Read the manual entry for this option."
:button-face 'custom-link
:mouse-face 'highlight
+ :pressed-face 'highlight
:tag "Manual")
;;; The `custom-magic' Widget.
(push (widget-create-child-and-convert
widget (car links)
:button-face 'custom-link
- :mouse-face 'highlight)
+ :mouse-face 'highlight
+ :pressed-face 'highlight)
buttons)
(setq links (cdr links))
(cond ((null links)
(push (widget-create-child-and-convert
widget (car links)
:button-face 'custom-link
- :mouse-face 'highlight)
+ :mouse-face 'highlight
+ :pressed-face 'highlight)
buttons)
(setq links (cdr links))
(cond ((null links)
"Show parent in other window when activated."
:button-face 'custom-link
:mouse-face 'highlight
+ :pressed-face 'highlight
:help-echo "Create customization buffer for this group."
:action 'custom-group-link-action)
(save-excursion
(goto-char (posn-point (event-start event)))
(let* ((overlay (widget-get button :button-overlay))
+ (pressed-face (or (widget-get button :pressed-face)
+ widget-button-pressed-face))
(face (overlay-get overlay 'face))
(mouse-face (overlay-get overlay 'mouse-face)))
(unwind-protect
;; on when we move over it.
(save-excursion
(when face ; avoid changing around image
- (overlay-put overlay
- 'face widget-button-pressed-face)
- (overlay-put overlay
- 'mouse-face widget-button-pressed-face))
+ (overlay-put overlay 'face pressed-face)
+ (overlay-put overlay 'mouse-face pressed-face))
(unless (widget-apply button :mouse-down-action event)
(let ((track-mouse t))
(while (not (widget-button-release-event-p event))
(eq (get-char-property pos 'button)
button))
(when face
- (overlay-put overlay
- 'face
- widget-button-pressed-face)
- (overlay-put overlay
- 'mouse-face
- widget-button-pressed-face))
+ (overlay-put overlay 'face pressed-face)
+ (overlay-put overlay 'mouse-face pressed-face))
(overlay-put overlay 'face face)
(overlay-put overlay 'mouse-face mouse-face)))))