emacs-devel
[Top][All Lists]
Advanced

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

Re: GPM and mouse highlight


From: Jan Djärv
Subject: Re: GPM and mouse highlight
Date: Sun, 29 Aug 2010 14:34:05 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2



Eli Zaretskii skrev 2010-08-29 13.34:


Thanks.  However, it looks like there's a small misunderstanding here.
I didn't mean mouse selections, I meant mouse highlight when the mouse
pointer hovers above mouse-sensitive text.  We have such highlight in
Info, for example, where moving pointer above menu items and
cross-references changes the mouse cursor and highlights the
mouse-sensitive portion of the text.

You can have this in any buffer by evaluating the following
expression:

   (put-text-property N M 'mouse-face 'highlight)

for two buffer positions N and M.  Moving the mouse above the
specified portion of text will make the text stand out.

Suppose we have several TTY devices open in the same Emacs session.
Can GPM support mouse highlight on more than a single device in such a
session?

Isn't it Emacs that records and paints hightlights in this case? GPM only supplies the coordinates and the Emacs decides to highlight. If it is so, then GPM has no problem supporting many terminals.



2) If the answer to the previous question is NO, then should we add
the mouse-highlight related variables to struct tty_display_info on
Unix as well?


Sounds like the right thing to do to me.

Is this also true for the mouse highlight I described above?

Yes, I think so.

        Jan D.



reply via email to

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