From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Console based mouse face highlighting. Date: Sun, 13 May 2007 11:54:22 +1200 Message-ID: <17990.21422.577087.305723@kahikatea.snap.net.nz> References: <17989.37070.393150.565546@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1179014120 29786 80.91.229.12 (12 May 2007 23:55:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 May 2007 23:55:20 +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 May 13 01:55:18 2007 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.50) id 1Hn1Qj-0007Pp-ON for ged-emacs-devel@m.gmane.org; Sun, 13 May 2007 01:55:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hn1YJ-0003vd-8R for ged-emacs-devel@m.gmane.org; Sat, 12 May 2007 20:03:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hn1Xg-0003i2-PY for emacs-devel@gnu.org; Sat, 12 May 2007 20:02:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hn1Xf-0003hS-23 for emacs-devel@gnu.org; Sat, 12 May 2007 20:02:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hn1Xe-0003hL-UY for emacs-devel@gnu.org; Sat, 12 May 2007 20:02:26 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hn1Q0-0003h5-S5; Sat, 12 May 2007 19:54:33 -0400 Original-Received: from kahikatea.snap.net.nz (55.61.255.123.dynamic.snap.net.nz [123.255.61.55]) by viper.snap.net.nz (Postfix) with ESMTP id 784E03D8FA7; Sun, 13 May 2007 11:54:25 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 5ACF28F92B; Sun, 13 May 2007 11:54:23 +1200 (NZST) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.1.50.175 X-detected-kernel: Linux 2.4-2.6 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:70937 Archived-At: > Did you look at what msdos.c does to support mouse highlight on an > otherwise text-mode display? If not, I'd suggest to have a look. OK, thanks, that helped. I've now replaced calls to x_y_to_hpos_vpos with code in that file. It looks a bit better now, but the mouse highlighting is from text adjacent to the pointer, appears in a slightly different location and only when there is some input e.g a mouse click, and remains until I do a refresh (^L). I have a few questions: 1) Does write_glyphs *overwrite* existing glyphs (while insert_glyphs adds to them) ? It would be nice if a comment said what these functions do. 2) After a call to write_glyphs, does the cursor position move? 3) Any hints on frame updating ? (both xterm.c and msdos.c use dpyinfo) -- Nick http://www.inet.net.nz/~nickrob