From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: GPM and mouse highlight Date: Sun, 29 Aug 2010 07:34:20 -0400 Message-ID: References: <4C7A1AC0.1010007@swipnet.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1283081670 21719 80.91.229.12 (29 Aug 2010 11:34:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Aug 2010 11:34:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 29 13:34:29 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 1Opg9c-0000b1-Ov for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2010 13:34:29 +0200 Original-Received: from localhost ([127.0.0.1]:45011 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Opg9c-0007Tx-4f for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2010 07:34:28 -0400 Original-Received: from [199.232.76.173] (port=48397 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Opg9W-0007TN-Te for emacs-devel@gnu.org; Sun, 29 Aug 2010 07:34:22 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Opg9V-00065K-PT for emacs-devel@gnu.org; Sun, 29 Aug 2010 07:34:22 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:35099) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Opg9V-00065G-I1 for emacs-devel@gnu.org; Sun, 29 Aug 2010 07:34:21 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Opg9U-0001e9-O7; Sun, 29 Aug 2010 07:34:20 -0400 In-reply-to: <4C7A1AC0.1010007@swipnet.se> (message from =?ISO-8859-1?Q?Jan_Dj=E4rv?= on Sun, 29 Aug 2010 10:30:56 +0200) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:129389 Archived-At: > Date: Sun, 29 Aug 2010 10:30:56 +0200 > From: Jan Djärv > CC: emacs-devel@gnu.org > > > 1) Is there some fundamental limitation of GPM that prevents it from > > supporting more than a single device at a time? > > It can support several devices at the same time. If you are running on two > different machines there is no problem. On the same machine however, GPM > selection acts like X selection, i.e. if you select something in terminal 1 > and then later in terminal 2, the selection in terminal 1 is removed. AFAIK, > there can only be one GPM process per machine (per mouse really). 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? > > 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?