[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
incorrect button highlighting
From: |
Dan Nicolaescu |
Subject: |
incorrect button highlighting |
Date: |
Tue, 11 Sep 2007 10:21:02 -0700 |
Evaluate this code:
(require 'cus-edit)
(defvar my-button-list
'((push-button
:tag "prev"
:help-echo "prev"
:tag-glyph "prev-node"
:action (lambda (widget &optional e) (ding)))
(push-button
:tag "next"
:help-echo "next"
:tag-glyph "next-node"
:action (lambda (widget &optional e) (ding)))))
(defun test-buttons ()
(interactive)
(set (make-local-variable 'widget-button-pressed-face)
custom-button-pressed)
(mapc (lambda (arg) (widget-create arg)) my-button-list)
(widget-setup))
And then do M-x test-buttons RET
No put the mouse over one of the 2 buttons that appear, and both will
be shown using the custom-button-pressed face instead of just the one
that is under the mouse cursor.
Can someone please take a look at this?
Thanks
--dan
- incorrect button highlighting,
Dan Nicolaescu <=
- Re: incorrect button highlighting, Glenn Morris, 2007/09/17
- Re: incorrect button highlighting, Glenn Morris, 2007/09/20
- Re: incorrect button highlighting, Stephen Berman, 2007/09/20
- Re: incorrect button highlighting, Stefan Monnier, 2007/09/20
- Re: incorrect button highlighting, Richard Stallman, 2007/09/21
- Re: incorrect button highlighting, Stefan Monnier, 2007/09/21
- Re: incorrect button highlighting, Richard Stallman, 2007/09/22
Re: incorrect button highlighting, Stefan Monnier, 2007/09/20