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: [RFA] Console based mouse face highlighting. Date: Wed, 30 May 2007 17:41:45 +1200 Message-ID: <18013.3737.212835.601660@kahikatea.snap.net.nz> References: <17989.37070.393150.565546@kahikatea.snap.net.nz> <17993.11948.400368.430713@kahikatea.snap.net.nz> <17994.14013.614407.875104@kahikatea.snap.net.nz> <17994.32856.216525.50726@kahikatea.snap.net.nz> <17994.54868.931947.611990@kahikatea.snap.net.nz> <17995.31640.399794.621018@kahikatea.snap.net.nz> <17995.53754.860573.633945@kahikatea.snap.net.nz> <17996.55425.495501.592760@kahikatea.snap.net.nz> <17998.5626.348375.91578@kahikatea.snap.net.nz> <17998.45589.625578.730270@kahikatea.snap.net.nz> <17999.58366.589991.627229@kahikatea.snap.net.nz> <18000.6674.499048.55929@kahikatea.snap.net.nz> <18003.25188.316225.788371@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 1180503735 2353 80.91.229.12 (30 May 2007 05:42:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 May 2007 05:42:15 +0000 (UTC) To: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=), emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 30 07:42:13 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 1HtGwi-0004v1-3L for ged-emacs-devel@m.gmane.org; Wed, 30 May 2007 07:42:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HtGwg-0000fo-Lo for ged-emacs-devel@m.gmane.org; Wed, 30 May 2007 01:42:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HtGwa-0000cf-VX for emacs-devel@gnu.org; Wed, 30 May 2007 01:42:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HtGwZ-0000ZO-9v for emacs-devel@gnu.org; Wed, 30 May 2007 01:42:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HtGwZ-0000YU-3q for emacs-devel@gnu.org; Wed, 30 May 2007 01:41:59 -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 1HtGwX-0007LS-C0 for emacs-devel@gnu.org; Wed, 30 May 2007 01:41:58 -0400 Original-Received: from kahikatea.snap.net.nz (118.62.255.123.dynamic.snap.net.nz [123.255.62.118]) by viper.snap.net.nz (Postfix) with ESMTP id F3C153D9284; Wed, 30 May 2007 17:41:50 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 48C958F935; Wed, 30 May 2007 17:41:46 +1200 (NZST) In-Reply-To: <18003.25188.316225.788371@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 22.1.50.6 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:71984 Archived-At: > > The menu bar can't be activated by clicking; dragging the > > mode-line/vertical-border doesn't work. > > OK, I can see these. I'll put them on my todo list. The menu bar isn't currently recognised by Emacs as a special area. The file t-mouse.el previously worked by faking the mouse event. Now it is read from the command loop, I think Emacs needs to add ON_MENU_BAR to enum window_part and make coordinates_in_window return it when appropriate. I've got the function mouse-position to work but trying to drag the mode-line/vertical-border still doesn't. Evaluating your expression: (track-mouse (read-event)) after the mouse has been moved onto part of this text gives an erroneous value for POS-OR-AREA and TEXT-POS. (It's always at (point-max) i.e the end of the text.) This might be the cause of the problem. I'll elaborate if anyone is interested in fixing it. -- Nick http://www.inet.net.nz/~nickrobff