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: [PATCH] Console based mouse face highlighting. Date: Sun, 13 May 2007 07:41:30 +0300 Message-ID: References: <17989.37070.393150.565546@kahikatea.snap.net.nz> <17990.21422.577087.305723@kahikatea.snap.net.nz> <17990.37305.657724.344516@kahikatea.snap.net.nz> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1179031308 30450 80.91.229.12 (13 May 2007 04:41:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 May 2007 04:41:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 13 06:41:46 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 1Hn5ty-0007IA-5u for ged-emacs-devel@m.gmane.org; Sun, 13 May 2007 06:41:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hn61W-0007A6-W3 for ged-emacs-devel@m.gmane.org; Sun, 13 May 2007 00:49:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hn61T-000795-Cz for emacs-devel@gnu.org; Sun, 13 May 2007 00:49:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hn61R-00078l-Q7 for emacs-devel@gnu.org; Sun, 13 May 2007 00:49:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hn61R-00078i-Eo for emacs-devel@gnu.org; Sun, 13 May 2007 00:49:29 -0400 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hn5to-0002hy-8d for emacs-devel@gnu.org; Sun, 13 May 2007 00:41:36 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-200-202.inter.net.il [84.228.200.202]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id CON85007 (AUTH halo1); Sun, 13 May 2007 07:41:29 +0300 (IDT) In-reply-to: <17990.37305.657724.344516@kahikatea.snap.net.nz> (message from Nick Roberts on Sun, 13 May 2007 16:19:05 +1200) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:70949 Archived-At: > From: Nick Roberts > Date: Sun, 13 May 2007 16:19:05 +1200 > Cc: emacs-devel@gnu.org > > -rw-r--r-- 1 nickrob nickrob 22289 2007-04-23 05:00 abbrev.c > -rw-r--r-- 1 nickrob nickrob 185308 2007-05-09 23:02 abbrev.o > -rw-r--r-- 1 nickrob nickrob 1311 2007-02-11 11:34 acldef.h > -rw-r--r-- 1 nickrob nickrob 14768 2004-01-31 06:10 alloca.c > > The filenames have mouse face highlighting. Does the highlight show when you move the mouse pointer above any of these names? > If I click on acldef.h Why do you need to click? Mouse highlight is supposed to happen without any need to click. > then the text "alloca.c" might appear after abbrev.c, say, with the > mouse face overlay (green background, black foreground) When you say ``after abbrev.c'', do you mean immediately to the right of abbrev.c, or do you mean below abbrev.c, in the line occupied by abbrev.o above? > Perhaps some of my glyph row/column calculations are a bit wrong. It sounds like that. If you turn on termscript, you will see the exact commands that are sent to the terminal driver. You will then be able to compare the positioning used in the initial display of the buffer with the positions you use when you generate highlighted glyphs. > > > 2) After a call to write_glyphs, does the cursor position move? > > > > I'm not sure. Why is this important? Anyway, Emacs always > > repositions the cursor at point at redisplay end. > > I've not considered the cursor up till now and it sometimes seems to jump > around (but perhaps I'm confusing the cursor with the pointer, which are the > same shape with Gpm). Again, termscript will show you what cursor-positioning commands are sent. Also, I think the text cursor is switched off during the entire redisplay (and you probably should turn it off when you generate highlight, if you didn't already).