all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* incorrect button highlighting
@ 2007-09-11 17:21 Dan Nicolaescu
  2007-09-17  6:20 ` Glenn Morris
  2007-09-20 18:56 ` Stefan Monnier
  0 siblings, 2 replies; 9+ messages in thread
From: Dan Nicolaescu @ 2007-09-11 17:21 UTC (permalink / raw)
  To: emacs-devel


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-09-22 11:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-11 17:21 incorrect button highlighting Dan Nicolaescu
2007-09-17  6:20 ` Glenn Morris
2007-09-20  8:05   ` Glenn Morris
2007-09-20 18:28     ` Stephen Berman
2007-09-20 18:50     ` Stefan Monnier
2007-09-21 12:23     ` Richard Stallman
2007-09-21 13:25       ` Stefan Monnier
2007-09-22 11:57         ` Richard Stallman
2007-09-20 18:56 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.