From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: GPM and mouse highlight Date: Sun, 29 Aug 2010 14:34:05 +0200 Message-ID: <4C7A53BD.4090601@swipnet.se> References: <4C7A1AC0.1010007@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1283085261 1886 80.91.229.12 (29 Aug 2010 12:34:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Aug 2010 12:34:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 29 14:34:20 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oph5W-0001PF-Jh for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2010 14:34:18 +0200 Original-Received: from localhost ([127.0.0.1]:33044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oph5V-0008Nf-SS for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2010 08:34:17 -0400 Original-Received: from [140.186.70.92] (port=49983 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oph5O-0008NL-PB for emacs-devel@gnu.org; Sun, 29 Aug 2010 08:34:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oph5N-0007uu-TH for emacs-devel@gnu.org; Sun, 29 Aug 2010 08:34:10 -0400 Original-Received: from smtprelay-b12.telenor.se ([62.127.194.21]:34756) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oph5M-0007uc-Lx; Sun, 29 Aug 2010 08:34:08 -0400 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 4613BC3EF; Sun, 29 Aug 2010 14:34:07 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar44AJbweUxV4S0jPGdsb2JhbACHaJhhDAEBAQE1LbdhhTcE X-IronPort-AV: E=Sophos;i="4.56,286,1280700000"; d="scan'208";a="1664927720" Original-Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb4.telenor.se with ESMTP; 29 Aug 2010 14:34:06 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 54B907FA05A; Sun, 29 Aug 2010 14:34:06 +0200 (CEST) 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 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129394 Archived-At: 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.