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: Extending GUD tooltips Date: Tue, 3 May 2005 22:45:30 +1200 Message-ID: <17015.22090.53929.166111@farnswood.snap.net.nz> References: <17007.2905.593257.125998@farnswood.snap.net.nz> <1114584386.426f3542a133c@imp5-q.free.fr> <17008.6540.383765.100951@farnswood.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1115182637 6709 80.91.229.2 (4 May 2005 04:57:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 04:57:17 +0000 (UTC) Cc: jerome.marant@free.fr, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 04 06:57:15 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTBwZ-0000c9-59 for ged-emacs-devel@m.gmane.org; Wed, 04 May 2005 06:57:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTC3n-000797-Vz for ged-emacs-devel@m.gmane.org; Wed, 04 May 2005 01:04:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DSvRK-00087s-7W for emacs-devel@gnu.org; Tue, 03 May 2005 07:19:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DSvBR-000495-ET for emacs-devel@gnu.org; Tue, 03 May 2005 07:03:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSv6j-0002xj-Of for emacs-devel@gnu.org; Tue, 03 May 2005 06:58:29 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DSv02-0002e8-6p; Tue, 03 May 2005 06:51:34 -0400 Original-Received: from farnswood.snap.net.nz (p211-tnt1.snap.net.nz [202.124.110.211]) by viper.snap.net.nz (Postfix) with ESMTP id 599A14B006C; Tue, 3 May 2005 22:46:48 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id AE68762A9A; Tue, 3 May 2005 11:45:30 +0100 (BST) Original-To: rms@gnu.org In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.36 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:36634 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36634 > Maybe thats a general rule but one needs to be > quantitative. tooltip.el is about 500 lines and about half that > code is for GUD. So maybe 250 lines get loaded in Emacs through > loadup.el but I'm not sure that it amounts to much in memory. On > the other hand, gud.el is about 3000 lines, so moving GUD tooltips > there would make the file over ten times larger than > tooltip.el. Can you see any practical benefit in doing this? > > If this means moving 250 lines into a file of 3000 lines, I don't see > how that would create a problem. I am not sure what is the best thing > to do here, but one possible benefit from moving the code and making > tooltip.el generic would be modularity and clarity. GUD tooltips need some disentangling from the normal tooltips. They're coded differently and GUD tooltips shouldn't need tooltip-mode enabled to work: it should be possble to toggle them independently. After that is done, it should be straightforward to put the code for GUD tooltips into gud.el. I might try this one day, after the release, but would be more than happy if someone else wants to do it. Nick