emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mode-line highlight


From: Stefan Monnier
Subject: Re: mode-line highlight
Date: Fri, 17 Jun 2005 09:31:55 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> 1 - move mouse to one of the minor modes names on the mode-line.
>> press mouse-3 to get a menu of minor modes.
>> cancel the menu by releasing outside of it (while keeping the mouse
>> cursor pointing outside of any Emacs window): the mouse-face highlight
>> will be turned back ON (on the spot where you orignally pressed
>> mouse-3), even though the mouse is not in that area any more.

> I think it is nothing to do with mouse-line.

Could be.

> Please eval following code at *scratch*; and do the same on [PRESS ME] on 
> your emacs with Lucid.

>     (easy-menu-define test-menu global-map
>              "Menu for `test-menu'."
>              '("Test"
>                ["Gnus" gnus]
>                ["Grep" grep]
>                ))

>     (let ((b (goto-char (point-max)))
>         (e (progn (insert "[PRESS ME]") (point))))
>       (put-text-property b e 
>                        'mouse-face 
>                        'highlight)
>       (put-text-property b e 
>                        'local-map
>                        (let ((kmap (make-sparse-keymap)))
>                          (define-key kmap [down-mouse-3] (lambda ()
>                                                            (interactive)
>                                                            (popup-menu 
> test-menu)))
>                          kmap)))

> As Lute reported, emacs with Gtk+ behaves different way.
> Ignoring this bug, I like the behavior of emacs with lucid; it shows the

I'm not sure what precise behaviors you're referring to.  If you're saying
it's good to keep the highlighting while the menu is displayed,
I could agree.  But the highlighting should disappear when the menu is
popped down.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]