all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: mode-line highlight
Date: Fri, 17 Jun 2005 09:31:55 -0400	[thread overview]
Message-ID: <87r7f1un6a.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20050616.131556.188536300.jet@gyve.org> (Masatake YAMATO's message of "Thu, 16 Jun 2005 13:15:56 +0900 (JST)")

>> 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	other threads:[~2005-06-17 13:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15 21:21 mode-line highlight Stefan Monnier
2005-06-15 22:25 ` Lute Kamstra
2005-06-16  4:15 ` Masatake YAMATO
2005-06-17 13:31   ` Stefan Monnier [this message]
2005-06-17 13:34     ` Masatake YAMATO

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r7f1un6a.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.