From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?b?Suly9G1l?= Marant Newsgroups: gmane.emacs.devel Subject: Re: Extending GUD tooltips Date: Thu, 28 Apr 2005 11:05:53 +0200 Message-ID: <1114679153.4270a77122b20@imp6-q.free.fr> References: <17007.2905.593257.125998@farnswood.snap.net.nz> <1114584386.426f3542a133c@imp5-q.free.fr> <17008.6540.383765.100951@farnswood.snap.net.nz> Reply-To: jerome.marant@free.fr NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1114678893 25823 80.91.229.2 (28 Apr 2005 09:01:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2005 09:01:33 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 28 11:01:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DR4tN-0005fR-2v for ged-emacs-devel@m.gmane.org; Thu, 28 Apr 2005 11:01:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DR4zS-0003CZ-EJ for ged-emacs-devel@m.gmane.org; Thu, 28 Apr 2005 05:07:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DR4zG-0003B8-KO for emacs-devel@gnu.org; Thu, 28 Apr 2005 05:07:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DR4zE-00038A-LZ for emacs-devel@gnu.org; Thu, 28 Apr 2005 05:07:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DR4zE-0002O3-Dv for emacs-devel@gnu.org; Thu, 28 Apr 2005 05:07:08 -0400 Original-Received: from [213.228.0.169] (helo=postfix3-2.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DR51v-0000z7-Ln for emacs-devel@gnu.org; Thu, 28 Apr 2005 05:09:55 -0400 Original-Received: from imp6-q.free.fr (imp6-q.free.fr [212.27.42.6]) by postfix3-2.free.fr (Postfix) with ESMTP id 69D17C0C8; Thu, 28 Apr 2005 11:05:53 +0200 (CEST) Original-Received: by imp6-q.free.fr (Postfix, from userid 33) id 47FCF2107D; Thu, 28 Apr 2005 11:05:53 +0200 (MEST) Original-Received: from mure.msy.sagem.com (mure.msy.sagem.com [62.160.59.178]) by imp6-q.free.fr (IMP) with HTTP for ; Thu, 28 Apr 2005 11:05:53 +0200 Original-To: Nick Roberts In-Reply-To: <17008.6540.383765.100951@farnswood.snap.net.nz> User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 62.160.59.178 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:36467 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36467 Quoting Nick Roberts : > > Btw, I have a question not directly related to your patch: why do yo= u > > absolutely need to put gud-specific code within tooltip.el? > > Well, I didn't put them there, but it certainly makes coding easier bec= ause > GUD tooltips use a lot of the generic code. You mean you did put them there I guess or I misunderstood the first part of your sentence. > > IMHO, tooltip.el shall only provide some generic code that can be us= ed > > by other modes, externaly. AFAIK, this what other modes do. > > 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 m= uch in I think it is a general rule of software design (I don't pretend to give software design lessons though). Are other modes likely to use those gud tooltip functions? If not, they should not be put in the same module. How id GUD different from other modes in this respect? > memory. On the other hand, gud.el is about 3000 lines, so moving GUD to= oltips > there would make the file over ten times larger than tooltip.el. Can yo= u see > any practical benefit in doing this? I fail to understand the problem from the the gud POV. gud-specific tooltip code would only be loaded for anyone using gud anywa= y, right? Cheers, -- J=E9r=F4me Marant