From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Item for TODO? Date: Sat, 22 Jan 2005 13:52:33 +0200 Message-ID: <01c50079$Blat.v2.4$0137bcc0@zahav.net.il> References: <16880.39426.162103.127059@farnswood.snap.net.nz> <01c5005d$Blat.v2.4$9cc5e2a0@zahav.net.il> <16882.13427.347927.500704@farnswood.snap.net.nz> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1106395104 29156 80.91.229.6 (22 Jan 2005 11:58:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Jan 2005 11:58:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 22 12:58:17 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CsJuC-0005SB-00 for ; Sat, 22 Jan 2005 12:58:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CsK6J-0006kL-De for ged-emacs-devel@m.gmane.org; Sat, 22 Jan 2005 07:10:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CsK6B-0006kC-Vq for emacs-devel@gnu.org; Sat, 22 Jan 2005 07:10:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CsK6B-0006jy-E6 for emacs-devel@gnu.org; Sat, 22 Jan 2005 07:10:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CsK6B-0006ji-Br for emacs-devel@gnu.org; Sat, 22 Jan 2005 07:10:39 -0500 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CsJsw-0003ix-PU for emacs-devel@gnu.org; Sat, 22 Jan 2005 06:56:59 -0500 Original-Received: from zaretski (IGLD-83-130-252-165.inter.net.il [83.130.252.165]) by legolas.inter.net.il (MOS 3.5.6-GR) with ESMTP id DPA13321 (AUTH halo1); Sat, 22 Jan 2005 13:56:51 +0200 (IST) Original-To: Nick Roberts X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.4 In-reply-to: <16882.13427.347927.500704@farnswood.snap.net.nz> (message from Nick Roberts on Sun, 23 Jan 2005 00:09:39 +1300) 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: main.gmane.org gmane.emacs.devel:32488 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32488 > From: Nick Roberts > Date: Sun, 23 Jan 2005 00:09:39 +1300 > Cc: Stefan Monnier , emacs-devel@gnu.org > > > So the only thing that's missing is to make the tty mouse support > > package inject help-echo events into the Emacs keyboard queue. > > Everything else should ``just work''. > > What is a help-echo event? See keyboard.c, functions read_char and show_help_echo. If the event found (by kbd_buffer_get_event) in the keyboard queue is a list of the special form (help-echo FRAME HELP WINDOW OBJECT POS) then Emacs displays the text specified by HELP as a tooltip or an echo area message (see the comments in keyboard.c immediately before show_help_echo for the details). > On an xterm, if you move the mouse around no input characters are generated > for Emacs to read. It only knows where the mouse is when you click a > button. In between, I don't think it knows where the mouse is. Does this mean that the track-mouse form does not work with xt-mouse? > How could it then display a tooltip? If there's no way to produce input with xt-mouse, then I think tooltips cannot be triggered by mouse movements. You need to come up with some other method of triggering the tooltip display. Once you do come up with such a method, all you need to do is make that method produce events of the above form, and the rest will work automagically.