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: GPM and mouse highlight Date: Sun, 29 Aug 2010 01:39:34 -0400 Message-ID: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1283060386 20496 80.91.229.12 (29 Aug 2010 05:39:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Aug 2010 05:39:46 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 29 07:39:45 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 1OpacL-0005JT-7C for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2010 07:39:45 +0200 Original-Received: from localhost ([127.0.0.1]:51504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpacK-0007P5-JA for ged-emacs-devel@m.gmane.org; Sun, 29 Aug 2010 01:39:44 -0400 Original-Received: from [199.232.76.173] (port=44222 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpacC-0007Ox-C5 for emacs-devel@gnu.org; Sun, 29 Aug 2010 01:39:36 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OpacB-0004KT-2G for emacs-devel@gnu.org; Sun, 29 Aug 2010 01:39:36 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:40296) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OpacA-0004KO-Rd for emacs-devel@gnu.org; Sun, 29 Aug 2010 01:39:34 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OpacA-0004CR-9b for emacs-devel@gnu.org; Sun, 29 Aug 2010 01:39:34 -0400 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:129381 Archived-At: A text terminal with a GPM mouse can support mouse highlight. However, the implementation of this support in term.c uses static variables to track the highlighted region. Unless I'm missing something, this means that this support cannot be available on more than one terminal device at the same time, even though we have multi-tty support for quite some time. By contrast, the GUI sessions (and the MS-DOS port) have these variables as part of the Display_Info structure and can track several frames/devices independently. Questions: 1) Is there some fundamental limitation of GPM that prevents it from supporting more than a single device at a time? 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? I'm asking because, as part of working on mouse highlight of bidirectional text, I found out that there are 3 separate implementations of mouse highlight: one for when we HAVE_WINDOW_SYSTEM, another one for GPM, and yet another for MS-DOS. Due to this, bugs that were fixed in the GUI version of this support (e.g., bug#1220) are still there in the other 2 versions. I'd like to merge all 3 implementations into a single one. (If nothing else, it will save me from writing 3 very similar implementations of bidi-aware mouse highlighting.)