[Top][All Lists]

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

Re: tmm and enabled menus.

From: Matt Hodges
Subject: Re: tmm and enabled menus.
Date: Wed, 01 Jun 2005 15:31:13 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/22.0.50 (gnu/linux)

>>>>> Nick Roberts writes:

 > > I have written some code that removes the mouse-face property for
 > > inactive entries, and adds a face inherited from
 > > font-lock-comment-face; see attached.  I think this does what you
 > > want regarding selection.

 > I prefer this behaviour for selection but I don't understand why
 > you have removed the mouse-face property. I can't see such
 > properties on a text terminal and in situations where I can, I
 > would be able to use the ordinary menu bar.

These are removed so that if you go into the *Completions* buffer
(with PgUp or M-v) and press RET on an inactive entry, you just get a
"No completion here" message; choose-completion checks for a
mouse-face property around point.  Since this is not obvious, maybe a
comment should be added.

 > +(defface tmm-inactive-face
 > +  '((t :inherit font-lock-comment-face))
 > +  "Face used for inactive menu items."
 > +  :group 'tmm)

 > font-lock-comment-face displays as ordinary text on a text terminal
 > now.

I use a terminal with more than 16 colours, so didn't notice this.

 >  Would it not be better to define tmm-active-face and make that
 > stand out?

I thought it more natural to deal with the inactive entries,
especially since the mouse-face can be removed at the same time.



reply via email to

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