From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eric M. Ludlam" Newsgroups: gmane.emacs.devel Subject: Re[2]: Tooltipping enhancement request Date: Wed, 10 Mar 2004 07:20:02 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200403101220.i2ACK2vd015248@projectile.siege-engine.com> References: <200403041817.i24IHC08001260@projectile.siege-engine.com> <20040310.145625.98873014.jet@gyve.org> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1079046409 20094 80.91.224.253 (11 Mar 2004 23:06:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Mar 2004 23:06:49 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Mar 12 00:06:42 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1ZGE-0000MW-00 for ; Fri, 12 Mar 2004 00:06:42 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1ZGD-0001A6-00 for ; Fri, 12 Mar 2004 00:06:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1Z8S-0008RR-NW for emacs-devel@quimby.gnus.org; Thu, 11 Mar 2004 17:58:40 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B12ij-000255-3Q for emacs-devel@gnu.org; Wed, 10 Mar 2004 07:21:57 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B12hf-0001Js-NX for emacs-devel@gnu.org; Wed, 10 Mar 2004 07:21:23 -0500 Original-Received: from [68.162.221.229] (helo=projectile.siege-engine.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1B12h6-00012G-Vc for emacs-devel@gnu.org; Wed, 10 Mar 2004 07:20:17 -0500 Original-Received: from projectile.siege-engine.com (localhost.localdomain [127.0.0.1]) by projectile.siege-engine.com (8.12.8/8.12.8) with ESMTP id i2ACK3AA015252; Wed, 10 Mar 2004 07:20:03 -0500 Original-Received: (from zappo@localhost) by projectile.siege-engine.com (8.12.8/8.12.8/Submit) id i2ACK2vd015248; Wed, 10 Mar 2004 07:20:02 -0500 X-Authentication-Warning: projectile.siege-engine.com: zappo set sender to eric@siege-engine.com using -f Original-To: Masatake YAMATO In-reply-to: <20040310.145625.98873014.jet@gyve.org> (message from Masatake YAMATO on Wed, 10 Mar 2004 14:56:25 +0900 (JST)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20314 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20314 >>> Masatake YAMATO seems to think that: >> 2) A means for accepting input from a tooltip (a strange idea) >> or a way to make a regular Emacs frame look like a tooltip. >> >> The tooltip is pretty good for me. I don't use the mouse much, but I >> watch others use this feature in other editors, and they all like to >> go clicky-clicky on the completion list. I think it would help >> mouse-bound users. >> >> The tooltip part is important because a timer can cause Emacs to go >> into this completion mode. Splitting windows and moving the mouse >> makes the feature difficult to accept. >> > >What kind of input do you expect? > >About VisualBasic like completion selection, I think it is better >to extend the behavior of popup-menu. The popup menu of emacs configured >with --with-gtk can do >1) select a menu item with cursor keys, and >2) pass other keys to the behind buffer and close the popup menu itself. > >The biggest problem is that there is no elisp function to pop down the >popup menu. (Correct me if I write wroing.) So you cannot use the popup >menu with timers. [ ... ] I'll call what I want a "completion tip" to separate it from both tooltips which do their job just fine, and menus. A usage of a completion tip be this: 1) popup from a timer or keypress, showing possible completions 2) accept any length text, and show a scrollbar if too long 3) remove itself in case of non-completion-tip actions. 4) not disappear on valid completion tip actions which include: a) scrollbar actions b) cursor up/down navigation 5) allow highlighting/coloring of one or more in the list I think I can simulate a bunch of of this with tooltips and clever use of text characters and images, but I'm not sure about the flashing of the tip on each keystroke. A problem with menus is that they won't go away after non completion tip type actions. Thanks Eric -- Eric Ludlam: zappo@gnu.org, eric@siege-engine.com Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org