From julien.gilles@bcv01y01.vz.cit.alcatel.fr Thu Dec 07 04:48:36 2000
Received: from mel.alcatel.fr ([212.208.74.132])
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143xfI-0007WD-00
	for <bug-global@gnu.org>; Thu, 07 Dec 2000 04:48:36 -0500
Received: from aifhs2.alcatel.fr (mailhub.alcatel.fr [155.132.180.80])
        by mel.alcatel.fr (ALCANET/SMTP) with ESMTP id KAA29837
        for <bug-global@gnu.org>; Thu, 7 Dec 2000 10:47:59 +0100
Received: from dnscit.cit.alcatel.fr (dnscit.cit.alcatel.fr [139.54.100.2])
        by aifhs2.alcatel.fr (ALCANET/SMTP2) with ESMTP id KAA03586
        for <bug-global@gnu.org>; Thu, 7 Dec 2000 10:44:48 +0100 (MET)
Received: from dnsvz.vz.cit.alcatel.fr (dnsvz.vz.cit.alcatel.fr [139.54.85.1])
	by dnscit.cit.alcatel.fr (8.9.3+Sun/8.9.3) with ESMTP id KAA18746
	for <bug-global@gnu.org>; Thu, 7 Dec 2000 10:50:24 +0100 (MET)
Received: from bcv01y01.vz.cit.alcatel.fr (bcv01y01.vz.cit.alcatel.fr [139.54.101.1])
	by dnsvz.vz.cit.alcatel.fr (8.9.3+Sun/8.9.3) with ESMTP id KAA00119
	for <bug-global@gnu.org>; Thu, 7 Dec 2000 10:51:23 +0100 (MET)
Received: from bcv01xc7.vz.cit.alcatel.fr (bcv01xc7.vz.cit.alcatel.fr [139.54.101.199]) by bcv01y01.vz.cit.alcatel.fr with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id KAA05997 for <bug-global@gnu.org>; Thu, 7 Dec 2000 10:47:33 +0100 (MET)
Received: by bcv01xc7.vz.cit.alcatel.fr (8.8.8+Sun/SMI-SVR4)
	id KAA28388; Thu, 7 Dec 2000 10:47:31 +0100 (MET)
To: bug-global@gnu.org
Subject: Re: Using global with different directories
References: <200012070103.KAA00418@tamacom.com>
From: Julien Gilles  <julien.gilles@bcv01y01.vz.cit.alcatel.fr>
Date: 07 Dec 2000 10:47:31 +0100
In-Reply-To: <200012070103.KAA00418@tamacom.com>
Message-ID: <tn7l5cd0lo.fsf@bcv01xc7.vz.cit.alcatel.fr>
Lines: 57
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

Shigio Yamaguchi <shigio@tamacom.com> writes:

> > It would be nice to have an option to consider different G* files, and
> >  use all of them.
> 
> Would you please send such variable suggestion to bug-global@gnu.org?
> Thank you.

Here is my previous message (on help-global@gnu.org) :
------------------------------------------------------

> > I have the following state :
> > 
> > /usr/local/XXX/ : no write access, some code (in fact only .h files)
> > 
> > /home/gilles/YYY/ : read/write access, .cc & .h files.
> > 
> > I want to use global to search in both directories, of course.
> > 
> > I see in the infos pages the GTAGSROOT, GTAGSDBPATH and GTAGSLIBPATH
> > variables, but can't figure out how to mix them together to make it works.
> 
> How about doing like this?
> 
> % cd /home/gilles/YYY
> % cp -r /usr/local/XXX .
> % gtags
> 
> If you want not to have a copy of /usr/local/XXX then you can make
> a shadow tree of it using symbolic link.
> 
> To do it, following tools are available:
> 
> o lndir in X project.
> o mkshadow in GNU sh-tool.
> o mkshadow in pathconvert package (http://www.tamacom.com/pathconvert/)

Yep, it works. Thanks.

I just have another idea :

% cd /home/gilles/XXX
% mkdir /tmp/YYY
% (cd /usr/local/YYY; gtags /tmp/YYY)
% setenv GTAGSLIBPATH /tmp/YYY
% global something_in_YYY
 ../../../tmp/YYY/something.h

But if something_in_YYY is found also in /home/gilles/XXX/GTAGS, the
../../../tmp/YYY/... does not appear in the output.

It would be nice to have an option to consider different G* files, and
 use all of them.

-- 
Julien Gilles.


From shigio@tamacom.com Thu Dec 07 06:12:54 2000
Received: from mfep1.odn.ne.jp ([143.90.131.179] helo=t-mta1.odn.ne.jp)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 143yys-0006Gy-00
	for <bug-global@gnu.org>; Thu, 07 Dec 2000 06:12:54 -0500
Received: from choota.signet.or.jp ([211.127.124.8]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20001207111252236.HCDQ.16840.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Thu, 7 Dec 2000 20:12:52 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by choota.signet.or.jp (8.9.3/) with ESMTP id UAA17531; Thu, 7 Dec 2000 20:13:22 +0900 (JST)
Message-Id: <200012071113.UAA17531@tamacom.com>
To: Julien Gilles <julien.gilles@bcv01y01.vz.cit.alcatel.fr>
cc: bug-global@gnu.org
Subject: Re: Using global with different directories
References: <tn7l5cd0lo.fsf@bcv01xc7.vz.cit.alcatel.fr>
In-reply-to: Message from Julien Gilles <julien.gilles@bcv01y01.vz.cit.alcatel.fr>
  of "07 Dec 2000 10:47:31 +0100." <tn7l5cd0lo.fsf@bcv01xc7.vz.cit.alcatel.fr>
Date: Thu, 07 Dec 2000 20:13:22 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

> % cd /home/gilles/XXX
> % mkdir /tmp/YYY
> % (cd /usr/local/YYY; gtags /tmp/YYY)
> % setenv GTAGSLIBPATH /tmp/YYY
> % global something_in_YYY
>  ../../../tmp/YYY/something.h
> 
> But if something_in_YYY is found also in /home/gilles/XXX/GTAGS, the
> ../../../tmp/YYY/... does not appear in the output.
> 
> It would be nice to have an option to consider different G* files, and
>  use all of them.

OK. I'll implement it.
How about like this:

% printenv GTAGSLIBPATH
/usr/lib:/usr/local/lib
% global -x strlen
strlen		99 strlen.c     ...
% global -x --through strlen
strlen		99 strlen.c     ...
strlen		77 ../../usr/lib/strlen.c
strlen		55 ../../usr/local/lib/strlen.c
%

The 'through' means going through GTAGSLIBPATH.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: shigio@tamacom.com, (Spare mail: shigio@par.odn.ne.jp)


From ydirson@sunchorus.france.sun.com Tue Dec 12 05:48:32 2000
Received: from mercury.sun.com ([192.9.25.1])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 145mz2-0003fC-00
	for <bug-global@gnu.org>; Tue, 12 Dec 2000 05:48:32 -0500
Received: from sunfra.France.Sun.COM ([129.157.188.1])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id CAA25092
	for <bug-global@gnu.org>; Tue, 12 Dec 2000 02:48:29 -0800 (PST)
Received: from sunchorus.France.Sun.COM (sunchorus [129.157.173.1])
	by sunfra.France.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.0) with ESMTP id LAA04558
	for <bug-global@gnu.org>; Tue, 12 Dec 2000 11:48:28 +0100 (MET)
Received: from vibrato.France.Sun.COM (vibrato [129.157.196.6])
	by sunchorus.France.Sun.COM (8.8.8+Sun/8.8.8) with ESMTP id LAA16592
	for <bug-global@gnu.org>; Tue, 12 Dec 2000 11:48:27 +0100 (MET)
Received: (from ydirson@localhost)
	by vibrato.France.Sun.COM (8.9.3+Sun/8.9.3) id LAA12133
	for bug-global@gnu.org; Tue, 12 Dec 2000 11:48:27 +0100 (MET)
From: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
Date: Tue, 12 Dec 2000 11:48:27 +0100
To: Global list <bug-global@gnu.org>
Subject: htags: status line could show better status line
Message-ID: <20001212114827.C18186@vibrato>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

Currently when the pointer is over a href in a htags hypertext, the status
line does its default and displays the URL pointed to.  Unfortunately this
is not at all informative.  What would be better would be:

* filename + lineno if target is a program line
* things like "References to <symbol>" or "Uses of <symbol>" when relevant

Best regards,
-- 
      /\       Yann Dirson                      <ydirson@france.sun.com>
     \\ \
    \ \\ /     Sun Microsystems Inc.               <http://www.sun.com/>
   / \/ / /    ChorusOS Support
  / /   \//\
  \//\   / /   Phone: +33 139 44 74 50
   / / /\ /    Phone: 44450           
    / \\ \
     \ \\
      \/       Subcontractant from Logatique  <http://www.logatique.fr/>


From shigio@tamacom.com Tue Dec 12 08:36:15 2000
Received: from mfep3.odn.ne.jp ([143.90.131.181] helo=t-mta3.odn.ne.jp)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 145pbK-0004yF-00
	for <bug-global@gnu.org>; Tue, 12 Dec 2000 08:36:15 -0500
Received: from choota.signet.or.jp ([211.121.222.75]) by t-mta3.odn.ne.jp
          with ESMTP
          id <20001212133604427.THEP.894.t-mta3.odn.ne.jp@mta3.odn.ne.jp>;
          Tue, 12 Dec 2000 22:36:04 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by choota.signet.or.jp (8.9.3/) with ESMTP id WAA03184; Tue, 12 Dec 2000 22:36:24 +0900 (JST)
Message-Id: <200012121336.WAA03184@tamacom.com>
To: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
cc: Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
References: <20001212114827.C18186@vibrato>
In-reply-to: Message from Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
  of "Tue, 12 Dec 2000 11:48:27 +0100." <20001212114827.C18186@vibrato>
Date: Tue, 12 Dec 2000 22:36:24 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

> Currently when the pointer is over a href in a htags hypertext, the status
> line does its default and displays the URL pointed to.  Unfortunately this
> is not at all informative.  What would be better would be:
> 
> * filename + lineno if target is a program line
> * things like "References to <symbol>" or "Uses of <symbol>" when relevant

Good idea.
Does it need javascript? (Of course, it is no problem.)
I'll put it into TODO list.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: shigio@tamacom.com, (Spare mail: shigio@par.odn.ne.jp)


From ydirson@sunchorus.france.sun.com Mon Dec 18 03:39:41 2000
Received: from mercury.sun.com ([192.9.25.1])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 147vpd-0003gp-00
	for <bug-global@gnu.org>; Mon, 18 Dec 2000 03:39:41 -0500
Received: from sunfra.France.Sun.COM ([129.157.188.1])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id AAA06816;
	Mon, 18 Dec 2000 00:39:37 -0800 (PST)
Received: from sunchorus.France.Sun.COM (sunchorus [129.157.173.1])
	by sunfra.France.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.0) with ESMTP id JAA03875;
	Mon, 18 Dec 2000 09:39:36 +0100 (MET)
Received: from vibrato.France.Sun.COM (vibrato [129.157.196.6])
	by sunchorus.France.Sun.COM (8.8.8+Sun/8.8.8) with ESMTP id JAA20244;
	Mon, 18 Dec 2000 09:39:36 +0100 (MET)
Received: (from ydirson@localhost)
	by vibrato.France.Sun.COM (8.9.3+Sun/8.9.3) id JAA18242;
	Mon, 18 Dec 2000 09:39:35 +0100 (MET)
From: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
Date: Mon, 18 Dec 2000 09:39:35 +0100
To: Shigio Yamaguchi <shigio@tamacom.com>
Cc: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>,
        Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
Message-ID: <20001218093935.B18172@vibrato>
References: <20001212114827.C18186@vibrato> <ydirson@sunchorus.France.Sun.COM> <200012121336.WAA03184@tamacom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200012121336.WAA03184@tamacom.com>; from shigio@tamacom.com on Tue, Dec 12, 2000 at 10:36:24PM +0900
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

On Tue, Dec 12, 2000 at 10:36:24PM +0900, Shigio Yamaguchi wrote:
> > Currently when the pointer is over a href in a htags hypertext, the status
> > line does its default and displays the URL pointed to.  Unfortunately this
> > is not at all informative.  What would be better would be:
> > 
> > * filename + lineno if target is a program line
> > * things like "References to <symbol>" or "Uses of <symbol>" when relevant
> 
> Good idea.
> Does it need javascript? (Of course, it is no problem.)

I suppose so, I couldn't do without.  The following appears to work:

    <script>
      function showstat(string) {
      window.status = string;
      }      
    </script>
    This is <a href="." onmouseover="showstat('hello')">a test</a> and
    <a href="." onmouseover="showstat('hi')">another one</a>

-- 
      /\       Yann Dirson                      <ydirson@france.sun.com>
     \\ \
    \ \\ /     Sun Microsystems Inc.               <http://www.sun.com/>
   / \/ / /    ChorusOS Support
  / /   \//\
  \//\   / /   Phone: +33 139 44 74 50
   / / /\ /    Phone: 44450           
    / \\ \
     \ \\
      \/       Subcontractant from Logatique  <http://www.logatique.fr/>


From ydirson@sunchorus.france.sun.com Mon Dec 18 08:37:24 2000
Received: from mercury.sun.com ([192.9.25.1])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 1480Tk-0002Mo-00
	for <bug-global@gnu.org>; Mon, 18 Dec 2000 08:37:24 -0500
Received: from sunfra.France.Sun.COM ([129.157.188.1])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id FAA06415;
	Mon, 18 Dec 2000 05:37:20 -0800 (PST)
Received: from sunchorus.France.Sun.COM (sunchorus [129.157.173.1])
	by sunfra.France.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.0) with ESMTP id OAA03983;
	Mon, 18 Dec 2000 14:37:19 +0100 (MET)
Received: from vibrato.France.Sun.COM (vibrato [129.157.196.6])
	by sunchorus.France.Sun.COM (8.8.8+Sun/8.8.8) with ESMTP id OAA29376;
	Mon, 18 Dec 2000 14:37:18 +0100 (MET)
Received: (from ydirson@localhost)
	by vibrato.France.Sun.COM (8.9.3+Sun/8.9.3) id OAA18898;
	Mon, 18 Dec 2000 14:37:18 +0100 (MET)
From: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
Date: Mon, 18 Dec 2000 14:37:18 +0100
To: Shigio Yamaguchi <shigio@tamacom.com>
Cc: Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
Message-ID: <20001218143718.C18608@vibrato>
References: <20001212114827.C18186@vibrato> <ydirson@sunchorus.France.Sun.COM> <200012121336.WAA03184@tamacom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200012121336.WAA03184@tamacom.com>; from shigio@tamacom.com on Tue, Dec 12, 2000 at 10:36:24PM +0900
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

On Tue, Dec 12, 2000 at 10:36:24PM +0900, Shigio Yamaguchi wrote:
> > Currently when the pointer is over a href in a htags hypertext, the status
> > line does its default and displays the URL pointed to.  Unfortunately this
> > is not at all informative.  What would be better would be:
> > 
> > * filename + lineno if target is a program line
> > * things like "References to <symbol>" or "Uses of <symbol>" when relevant

In the same idea, it may be nice to have in the status bar, not only the
current filename as we currently have, but more contextual information,
like the function name.  This may require more information than we
currently have, though.

-- 
      /\       Yann Dirson                      <ydirson@france.sun.com>
     \\ \
    \ \\ /     Sun Microsystems Inc.               <http://www.sun.com/>
   / \/ / /    ChorusOS Support
  / /   \//\
  \//\   / /   Phone: +33 139 44 74 50
   / / /\ /    Phone: 44450           
    / \\ \
     \ \\
      \/       Subcontractant from Logatique  <http://www.logatique.fr/>


From shigio@tamacom.com Mon Dec 18 20:30:39 2000
Received: from mfep1.odn.ne.jp ([143.90.131.179] helo=t-mta1.odn.ne.jp)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148Bbz-0005RU-00
	for <bug-global@gnu.org>; Mon, 18 Dec 2000 20:30:39 -0500
Received: from choota.signet.or.jp ([211.121.222.217]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20001219013028423.MINW.20583.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Tue, 19 Dec 2000 10:30:28 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by choota.signet.or.jp (8.9.3/) with ESMTP id KAA01249; Tue, 19 Dec 2000 10:30:42 +0900 (JST)
Message-Id: <200012190130.KAA01249@tamacom.com>
To: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
cc: Shigio Yamaguchi <shigio@tamacom.com>, Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
References: <20001218143718.C18608@vibrato>
In-reply-to: Message from Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
  of "Mon, 18 Dec 2000 14:37:18 +0100." <20001218143718.C18608@vibrato>
Date: Tue, 19 Dec 2000 10:30:42 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

> In the same idea, it may be nice to have in the status bar, not only the
> current filename as we currently have, but more contextual information,
> like the function name.  This may require more information than we
> currently have, though.

How is it useful?
Would you please show one example?
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: shigio@tamacom.com, (Spare mail: shigio@par.odn.ne.jp)


From ydirson@sunchorus.france.sun.com Tue Dec 19 03:46:29 2000
Received: from patan.sun.com ([192.18.98.43])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148IPl-0003ce-00
	for <bug-global@gnu.org>; Tue, 19 Dec 2000 03:46:29 -0500
Received: from sunfra.France.Sun.COM ([129.157.188.1])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id AAA03376;
	Tue, 19 Dec 2000 00:46:26 -0800 (PST)
Received: from sunchorus.France.Sun.COM (sunchorus [129.157.173.1])
	by sunfra.France.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.0) with ESMTP id JAA20095;
	Tue, 19 Dec 2000 09:46:25 +0100 (MET)
Received: from vibrato.France.Sun.COM (vibrato [129.157.196.6])
	by sunchorus.France.Sun.COM (8.8.8+Sun/8.8.8) with ESMTP id JAA13253;
	Tue, 19 Dec 2000 09:46:24 +0100 (MET)
Received: (from ydirson@localhost)
	by vibrato.France.Sun.COM (8.9.3+Sun/8.9.3) id JAA22046;
	Tue, 19 Dec 2000 09:46:24 +0100 (MET)
From: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
Date: Tue, 19 Dec 2000 09:46:24 +0100
To: Shigio Yamaguchi <shigio@tamacom.com>
Cc: Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
Message-ID: <20001219094623.L18608@vibrato>
References: <20001218143718.C18608@vibrato> <ydirson@sunchorus.France.Sun.COM> <200012190130.KAA01249@tamacom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200012190130.KAA01249@tamacom.com>; from shigio@tamacom.com on Tue, Dec 19, 2000 at 10:30:42AM +0900
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

On Tue, Dec 19, 2000 at 10:30:42AM +0900, Shigio Yamaguchi wrote:
> > In the same idea, it may be nice to have in the status bar, not only the
> > current filename as we currently have, but more contextual information,
> > like the function name.  This may require more information than we
> > currently have, though.
> 
> How is it useful?
> Would you please show one example?

When one follows a link from a definition to a reference, it is sometimes
tedious to know in which function the reference is when the function is
large.  ChorusOS, for example, has such large functions.

What may also be useful would be to list the same function name in the list
of references when a func is used more than once.  It may help when a func
is widely use within a single file.

-- 
      /\       Yann Dirson                      <ydirson@france.sun.com>
     \\ \
    \ \\ /     Sun Microsystems Inc.               <http://www.sun.com/>
   / \/ / /    ChorusOS Support
  / /   \//\
  \//\   / /   Phone: +33 139 44 74 50
   / / /\ /    Phone: 44450           
    / \\ \
     \ \\
      \/       Subcontractant from Logatique  <http://www.logatique.fr/>


From shigio@tamacom.com Tue Dec 19 08:18:30 2000
Received: from mfep3.odn.ne.jp ([143.90.131.181] helo=t-mta3.odn.ne.jp)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148Mf0-0001RN-00
	for <bug-global@gnu.org>; Tue, 19 Dec 2000 08:18:30 -0500
Received: from choota.signet.or.jp ([211.121.220.234]) by t-mta3.odn.ne.jp
          with ESMTP
          id <20001219131827169.SCIZ.11655.t-mta3.odn.ne.jp@mta3.odn.ne.jp>;
          Tue, 19 Dec 2000 22:18:27 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by choota.signet.or.jp (8.9.3/) with ESMTP id WAA21173; Tue, 19 Dec 2000 22:18:41 +0900 (JST)
Message-Id: <200012191318.WAA21173@tamacom.com>
To: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
cc: Shigio Yamaguchi <shigio@tamacom.com>, Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
References: <20001219094623.L18608@vibrato>
In-reply-to: Message from Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
  of "Tue, 19 Dec 2000 09:46:24 +0100." <20001219094623.L18608@vibrato>
Date: Tue, 19 Dec 2000 22:18:41 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

> When one follows a link from a definition to a reference, it is sometimes
> tedious to know in which function the reference is when the function is
> large.  ChorusOS, for example, has such large functions.

I understand. It is useful.
But your suggestion seems one about new basic facility of GLOBAL
beyond the issure of status line.
As you said, GLOBAL detects only start point of object.

	55 func1() {		-	<= GLOBAL know this line.
	56	int n;		^
				|
	.....			Range of function
				|
	87	return n;	v
	88 }			-	<= GLOBAL doesn't know this line.
	89
	90
	91 func2() {			<= GLOBAL know this line.

Please let me think about whether or not GLOBAL should treat the range of
function like cscope.

> What may also be useful would be to list the same function name in the list
> of references when a func is used more than once.  It may help when a func
> is widely use within a single file.

I couldn't understand. Would you please show one example?
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: shigio@tamacom.com, (Spare mail: shigio@par.odn.ne.jp)


From ydirson@sunchorus.france.sun.com Wed Dec 20 03:33:03 2000
Received: from mercury.sun.com ([192.9.25.1])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148egI-000507-00
	for <bug-global@gnu.org>; Wed, 20 Dec 2000 03:33:02 -0500
Received: from sunfra.France.Sun.COM ([129.157.188.1])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id AAA11850;
	Wed, 20 Dec 2000 00:33:00 -0800 (PST)
Received: from sunchorus.France.Sun.COM (sunchorus [129.157.173.1])
	by sunfra.France.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.0) with ESMTP id JAA02498;
	Wed, 20 Dec 2000 09:32:58 +0100 (MET)
Received: from vibrato.France.Sun.COM (vibrato [129.157.196.6])
	by sunchorus.France.Sun.COM (8.8.8+Sun/8.8.8) with ESMTP id JAA03496;
	Wed, 20 Dec 2000 09:32:58 +0100 (MET)
Received: (from ydirson@localhost)
	by vibrato.France.Sun.COM (8.9.3+Sun/8.9.3) id JAA23321;
	Wed, 20 Dec 2000 09:32:57 +0100 (MET)
From: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
Date: Wed, 20 Dec 2000 09:32:57 +0100
To: Shigio Yamaguchi <shigio@tamacom.com>
Cc: Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
Message-ID: <20001220093257.S18608@vibrato>
References: <20001219094623.L18608@vibrato> <ydirson@sunchorus.France.Sun.COM> <200012191318.WAA21173@tamacom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200012191318.WAA21173@tamacom.com>; from shigio@tamacom.com on Tue, Dec 19, 2000 at 10:18:41PM +0900
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

On Tue, Dec 19, 2000 at 10:18:41PM +0900, Shigio Yamaguchi wrote:
> But your suggestion seems one about new basic facility of GLOBAL
> beyond the issure of status line.
> As you said, GLOBAL detects only start point of object.
[...]
> Please let me think about whether or not GLOBAL should treat the range of
> function like cscope.

Maybe the end of the function/class/whatever can be approximated to the start of the
next (non-nested) definition, that may be sufficient for this purpose.


> > What may also be useful would be to list the same function name in the list
> > of references when a func is used more than once.  It may help when a func
> > is widely use within a single file.
> 
> I couldn't understand. Would you please show one example?

Easy - these are the references to "assert" in m4.  It would be nice to see which
function they belong to.

assert           616 dev_tools/m4/regex.c             assert (p + *p < pend);
assert           839 dev_tools/m4/regex.c #undef assert
assert          1157 dev_tools/m4/regex.c   assert (!FAIL_STACK_EMPTY ());                                      \
assert          1164 dev_tools/m4/regex.c   assert (fail_stack.avail >= NUM_NONREG_ITEMS);                      \
assert          1738 dev_tools/m4/regex.c                 assert (p - 1 > pattern);
assert          2103 dev_tools/m4/regex.c               assert (compile_stack.avail != 0);
assert          2338 dev_tools/m4/regex.c                assert (beg_interval);
assert          2786 dev_tools/m4/regex.c   assert (fastmap != NULL && p != NULL);
assert          2806 dev_tools/m4/regex.c       assert (p < pend);
assert          3707 dev_tools/m4/regex.c                 assert (bufp->regs_allocated == REGS_FIXED);
assert          4442 dev_tools/m4/regex.c           assert (mcnt >= 0);
assert          4613 dev_tools/m4/regex.c         assert (p <= pend);
assert          4759 dev_tools/m4/regex.c         assert (p1[1] == **p);
assert          4845 dev_tools/m4/regex.c       assert (reg_no > 0 && reg_no <= MAX_REGNUM);

-- 
      /\       Yann Dirson                      <ydirson@france.sun.com>
     \\ \
    \ \\ /     Sun Microsystems Inc.               <http://www.sun.com/>
   / \/ / /    ChorusOS Support
  / /   \//\
  \//\   / /   Phone: +33 139 44 74 50
   / / /\ /    Phone: 44450           
    / \\ \
     \ \\
      \/       Subcontractant from Logatique  <http://www.logatique.fr/>


From shigio@tamacom.com Wed Dec 20 04:49:29 2000
Received: from mfep3.odn.ne.jp ([143.90.131.181] helo=t-mta3.odn.ne.jp)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148fsH-0007sa-00
	for <bug-global@gnu.org>; Wed, 20 Dec 2000 04:49:29 -0500
Received: from choota.signet.or.jp ([211.131.246.201]) by t-mta3.odn.ne.jp
          with ESMTP
          id <20001220094923405.ZXV.11655.t-mta3.odn.ne.jp@mta3.odn.ne.jp>;
          Wed, 20 Dec 2000 18:49:23 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by choota.signet.or.jp (8.9.3/) with ESMTP id SAA01844; Wed, 20 Dec 2000 18:49:34 +0900 (JST)
Message-Id: <200012200949.SAA01844@tamacom.com>
To: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
cc: Shigio Yamaguchi <shigio@tamacom.com>, Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
References: <20001220093257.S18608@vibrato>
In-reply-to: Message from Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
  of "Wed, 20 Dec 2000 09:32:57 +0100." <20001220093257.S18608@vibrato>
Date: Wed, 20 Dec 2000 18:49:34 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

> Maybe the end of the function/class/whatever can be approximated to the start
 of the
> next (non-nested) definition, that may be sufficient for this purpose.


I don't think so. For example,

+--------------------
|#define A(x)    (x)
|func() { return 1; }
|int     a = A(3);       <= This calling is out of func().
+--------------------

Following your method, above A(3) belongs to func() but it's wrong.
Short of information is no problem but wrong information becomes harm, I think.

> Easy - these are the references to "assert" in m4.  It would be nice to see w
hich
> function they belong to.

Sorry, I didn't understand the difference from your previous suggestion.
What should we show in the status line?
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: shigio@tamacom.com, (Spare mail: shigio@par.odn.ne.jp)


From ydirson@sunchorus.france.sun.com Wed Dec 20 04:58:17 2000
Received: from patan.sun.com ([192.18.98.43])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148g0m-00081R-00
	for <bug-global@gnu.org>; Wed, 20 Dec 2000 04:58:16 -0500
Received: from sunfra.France.Sun.COM ([129.157.188.1])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id BAA14550;
	Wed, 20 Dec 2000 01:58:14 -0800 (PST)
Received: from sunchorus.France.Sun.COM (sunchorus [129.157.173.1])
	by sunfra.France.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.0) with ESMTP id KAA10639;
	Wed, 20 Dec 2000 10:58:12 +0100 (MET)
Received: from vibrato.France.Sun.COM (vibrato [129.157.196.6])
	by sunchorus.France.Sun.COM (8.8.8+Sun/8.8.8) with ESMTP id KAA06631;
	Wed, 20 Dec 2000 10:58:12 +0100 (MET)
Received: (from ydirson@localhost)
	by vibrato.France.Sun.COM (8.9.3+Sun/8.9.3) id KAA23596;
	Wed, 20 Dec 2000 10:58:12 +0100 (MET)
From: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
Date: Wed, 20 Dec 2000 10:58:11 +0100
To: Shigio Yamaguchi <shigio@tamacom.com>
Cc: Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
Message-ID: <20001220105811.U18608@vibrato>
References: <20001220093257.S18608@vibrato> <ydirson@sunchorus.France.Sun.COM> <200012200949.SAA01844@tamacom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200012200949.SAA01844@tamacom.com>; from shigio@tamacom.com on Wed, Dec 20, 2000 at 06:49:34PM +0900
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

On Wed, Dec 20, 2000 at 06:49:34PM +0900, Shigio Yamaguchi wrote:
> Short of information is no problem but wrong information becomes harm, I think.

Yes.  Maybe add some information in GTAGS, if made available by the tagger, about
the scope of the reference ?  Indeed that would just extend the current
information that only gives the filename, replacing file.c with things like
file.c::myclass::myprivateclass::aMethod::privatefunc may not require much
modifications to the current code.


> > Easy - these are the references to "assert" in m4.  It would be nice to see which
> > function they belong to.
> 
> Sorry, I didn't understand the difference from your previous suggestion.
> What should we show in the status line?

Well, here I did not thought to add anything to the status line, just add one
more field to each entry in the list.

Regards,
-- 
      /\       Yann Dirson                      <ydirson@france.sun.com>
     \\ \
    \ \\ /     Sun Microsystems Inc.               <http://www.sun.com/>
   / \/ / /    ChorusOS Support
  / /   \//\
  \//\   / /   Phone: +33 139 44 74 50
   / / /\ /    Phone: 44450           
    / \\ \
     \ \\
      \/       Subcontractant from Logatique  <http://www.logatique.fr/>


From shigio@tamacom.com Wed Dec 20 06:17:10 2000
Received: from mfep1.odn.ne.jp ([143.90.131.179] helo=t-mta1.odn.ne.jp)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148hF8-0007Km-00
	for <bug-global@gnu.org>; Wed, 20 Dec 2000 06:17:10 -0500
Received: from choota.signet.or.jp ([211.121.222.211]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20001220111707233.BUVS.20583.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Wed, 20 Dec 2000 20:17:07 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by choota.signet.or.jp (8.9.3/) with ESMTP id UAA02282; Wed, 20 Dec 2000 20:17:20 +0900 (JST)
Message-Id: <200012201117.UAA02282@tamacom.com>
To: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
cc: Shigio Yamaguchi <shigio@tamacom.com>, Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
References: <20001220105811.U18608@vibrato>
In-reply-to: Message from Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
  of "Wed, 20 Dec 2000 10:58:11 +0100." <20001220105811.U18608@vibrato>
Date: Wed, 20 Dec 2000 20:17:20 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

> Yes.  Maybe add some information in GTAGS, if made available by the tagger, a
bout
> the scope of the reference ?  Indeed that would just extend the current
> information that only gives the filename, replacing file.c with things like
> file.c::myclass::myprivateclass::aMethod::privatefunc may not require much
> modifications to the current code.

Changing format is not so easy, because GLOBAL is used in many
environments like nvi, elvis, emacs, less or so on.
At least, the modification should be upper compatible.

Additionaly, making format more complex, tag file lose generality
and becomes hard to use, I think. GLOBAL should not be limited
in specific language.

I have no doubt about the usefulness of the facility to detect
range of object.  But another question is whether or not it is
worth enough to pay for the cost, that is, the time to imprement,
complexity and loss of generality.

It may beyond the concept of source code tag system.
(rather source code analyaing system?)
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: shigio@tamacom.com, (Spare mail: shigio@par.odn.ne.jp)


From ydirson@sunchorus.france.sun.com Wed Dec 20 06:27:29 2000
Received: from mercury.sun.com ([192.9.25.1])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148hP7-0007aJ-00
	for <bug-global@gnu.org>; Wed, 20 Dec 2000 06:27:29 -0500
Received: from sunfra.France.Sun.COM ([129.157.188.1])
	by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id DAA05967;
	Wed, 20 Dec 2000 03:27:26 -0800 (PST)
Received: from sunchorus.France.Sun.COM (sunchorus [129.157.173.1])
	by sunfra.France.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.0) with ESMTP id MAA19994;
	Wed, 20 Dec 2000 12:27:24 +0100 (MET)
Received: from vibrato.France.Sun.COM (vibrato [129.157.196.6])
	by sunchorus.France.Sun.COM (8.8.8+Sun/8.8.8) with ESMTP id MAA10095;
	Wed, 20 Dec 2000 12:27:24 +0100 (MET)
Received: (from ydirson@localhost)
	by vibrato.France.Sun.COM (8.9.3+Sun/8.9.3) id MAA23733;
	Wed, 20 Dec 2000 12:27:24 +0100 (MET)
From: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
Date: Wed, 20 Dec 2000 12:27:24 +0100
To: Shigio Yamaguchi <shigio@tamacom.com>
Cc: Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
Message-ID: <20001220122723.Y18608@vibrato>
References: <20001220105811.U18608@vibrato> <ydirson@sunchorus.France.Sun.COM> <200012201117.UAA02282@tamacom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200012201117.UAA02282@tamacom.com>; from shigio@tamacom.com on Wed, Dec 20, 2000 at 08:17:20PM +0900
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

On Wed, Dec 20, 2000 at 08:17:20PM +0900, Shigio Yamaguchi wrote:
> I have no doubt about the usefulness of the facility to detect
> range of object.  But another question is whether or not it is
> worth enough to pay for the cost, that is, the time to imprement,
> complexity and loss of generality.
> 
> It may beyond the concept of source code tag system.
> (rather source code analyaing system?)

It may as well be than the idea of building an hypertext of a source including
types and variables, is out of the scope of a tag system.  Such a feature will
also require more scope information than we currently have, just in the same
way...

Maybe I'm asking too much of a tagging system :)

However you've implemented lots of interesting stuff in GLOBAL, which would
be a shame to nearly duplicate :(

-- 
      /\       Yann Dirson                      <ydirson@france.sun.com>
     \\ \
    \ \\ /     Sun Microsystems Inc.               <http://www.sun.com/>
   / \/ / /    ChorusOS Support
  / /   \//\
  \//\   / /   Phone: +33 139 44 74 50
   / / /\ /    Phone: 44450           
    / \\ \
     \ \\
      \/       Subcontractant from Logatique  <http://www.logatique.fr/>


From shigio@tamacom.com Wed Dec 20 07:51:26 2000
Received: from mfep3.odn.ne.jp ([143.90.131.181] helo=t-mta3.odn.ne.jp)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148iiM-0001oB-00
	for <bug-global@gnu.org>; Wed, 20 Dec 2000 07:51:26 -0500
Received: from choota.signet.or.jp ([211.127.126.184]) by t-mta3.odn.ne.jp
          with ESMTP
          id <20001220125123663.CVCC.11655.t-mta3.odn.ne.jp@mta3.odn.ne.jp>;
          Wed, 20 Dec 2000 21:51:23 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by choota.signet.or.jp (8.9.3/) with ESMTP id VAA02463; Wed, 20 Dec 2000 21:51:36 +0900 (JST)
Message-Id: <200012201251.VAA02463@tamacom.com>
To: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
cc: Shigio Yamaguchi <shigio@tamacom.com>, Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
References: <20001220122723.Y18608@vibrato>
In-reply-to: Message from Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
  of "Wed, 20 Dec 2000 12:27:24 +0100." <20001220122723.Y18608@vibrato>
Date: Wed, 20 Dec 2000 21:51:36 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

> It may as well be than the idea of building an hypertext of a source includin
g
> types and variables, is out of the scope of a tag system.  Such a feature wil
l
> also require more scope information than we currently have, just in the same
> way...

I don't think so.
I have a plan to treat new objects like types, variables or so on.
(Please see http://www.tamacom.com/global/plans.html)
To implement it, new parser is needed but tag format need not to be
changed if you need not distinguish the type of object.

Isn't it enough like follows?

% global -x anytype
anytype		10 defs.h #define anytype(x) ...
anytype		55 main.c anytype(int a, int b) {
anytype		 5 foo.h  typedef anytype ...
% _

Or do you want to invoke with some option like this?

% global -x --data anytype
% global -x --function anytype
anytype         55 main.c anytype(int a, int b) {
% global -x --typedef anytype
anytype          5 typedef anytype ...

I think such option is needless.

> However you've implemented lots of interesting stuff in GLOBAL, which would
> be a shame to nearly duplicate :(

Whose shame? and why?
Sorry but I'm poor at English, so it is help for me to write plainly
like text book for a schoolchild.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: shigio@tamacom.com, (Spare mail: shigio@par.odn.ne.jp)


From ydirson@sunchorus.france.sun.com Wed Dec 20 08:26:11 2000
Received: from patan.sun.com ([192.18.98.43])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 148jFz-0003R9-00
	for <bug-global@gnu.org>; Wed, 20 Dec 2000 08:26:11 -0500
Received: from sunfra.France.Sun.COM ([129.157.188.1])
	by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id FAA11160;
	Wed, 20 Dec 2000 05:26:08 -0800 (PST)
Received: from sunchorus.France.Sun.COM (sunchorus [129.157.173.1])
	by sunfra.France.Sun.COM (8.8.8+Sun/8.8.8/ENSMAIL,v2.0) with ESMTP id OAA00072;
	Wed, 20 Dec 2000 14:26:07 +0100 (MET)
Received: from vibrato.France.Sun.COM (vibrato [129.157.196.6])
	by sunchorus.France.Sun.COM (8.8.8+Sun/8.8.8) with ESMTP id OAA13230;
	Wed, 20 Dec 2000 14:26:06 +0100 (MET)
Received: (from ydirson@localhost)
	by vibrato.France.Sun.COM (8.9.3+Sun/8.9.3) id OAA23929;
	Wed, 20 Dec 2000 14:26:06 +0100 (MET)
From: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
Date: Wed, 20 Dec 2000 14:26:06 +0100
To: Shigio Yamaguchi <shigio@tamacom.com>
Cc: Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
Message-ID: <20001220142606.E18608@vibrato>
References: <20001220122723.Y18608@vibrato> <ydirson@sunchorus.France.Sun.COM> <200012201251.VAA02463@tamacom.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200012201251.VAA02463@tamacom.com>; from shigio@tamacom.com on Wed, Dec 20, 2000 at 09:51:36PM +0900
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

On Wed, Dec 20, 2000 at 09:51:36PM +0900, Shigio Yamaguchi wrote:
> > It may as well be than the idea of building an hypertext of a source including
> > types and variables, is out of the scope of a tag system.  Such a feature will
> > also require more scope information than we currently have, just in the same
> > way...
> 
> I don't think so.
> I have a plan to treat new objects like types, variables or so on.
> (Please see http://www.tamacom.com/global/plans.html)

Sorry I was not clear - my thoughts were about local variables.  The risk is high
to have uses of local vars (that share the same name as a global var somewhere else
in the source tree) to be tagged as reference to a global var.

But I come to think that a smart parser can overcome this by detecting definitions of
local vars and deciding to ignore this symbol as far as indexing of gloal refs is
concerned.


To go further and have an hypertext that links uses of local vars to their defs may
still be nice for large functions, but it is this one which does seem to me out of scope.


> I think such option is needless.

At least they don't seem to be required for everyday use, but may prove useful for
accurate creation of the hypertext.


> > However you've implemented lots of interesting stuff in GLOBAL, which would
> > be a shame to nearly duplicate :(
> 
> Whose shame? and why?
> Sorry but I'm poor at English, so it is help for me to write plainly
> like text book for a schoolchild.

Arg...  Builtin compound keyword in the language - can't describe it easily :(
Should be in the "shame" entry in your nearest dictionary I guess :}

Just meant it would be better not to duplicate too much existing code if I ever
came to try to do better hypertexts :)

-- 
      /\       Yann Dirson                      <ydirson@france.sun.com>
     \\ \
    \ \\ /     Sun Microsystems Inc.               <http://www.sun.com/>
   / \/ / /    ChorusOS Support
  / /   \//\
  \//\   / /   Phone: +33 139 44 74 50
   / / /\ /    Phone: 44450           
    / \\ \
     \ \\
      \/       Subcontractant from Logatique  <http://www.logatique.fr/>


From shigio@tamacom.com Wed Dec 20 09:38:32 2000
Received: from mfep1.odn.ne.jp ([143.90.131.179] helo=t-mta1.odn.ne.jp)
	by fencepost.gnu.org with smtp (Exim 3.16 #1 (Debian))
	id 148kO0-0007Dt-00
	for <bug-global@gnu.org>; Wed, 20 Dec 2000 09:38:32 -0500
Received: from choota.signet.or.jp ([211.121.220.149]) by t-mta1.odn.ne.jp
          with ESMTP
          id <20001220143829110.EPSH.20583.t-mta1.odn.ne.jp@mta1.odn.ne.jp>;
          Wed, 20 Dec 2000 23:38:29 +0900
Received: from choota.signet.or.jp (localhost [127.0.0.1]) by choota.signet.or.jp (8.9.3/) with ESMTP id XAA03451; Wed, 20 Dec 2000 23:38:41 +0900 (JST)
Message-Id: <200012201438.XAA03451@tamacom.com>
To: Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
cc: Shigio Yamaguchi <shigio@tamacom.com>, Global list <bug-global@gnu.org>
Subject: Re: htags: status line could show better status line
References: <20001220142606.E18608@vibrato>
In-reply-to: Message from Yann Dirson - LOGATIQUE <ydirson@sunchorus.France.Sun.COM>
  of "Wed, 20 Dec 2000 14:26:06 +0100." <20001220142606.E18608@vibrato>
Date: Wed, 20 Dec 2000 23:38:41 +0900
From: Shigio Yamaguchi <shigio@tamacom.com>
Sender: bug-global-admin@gnu.org
Errors-To: bug-global-admin@gnu.org
X-BeenThere: bug-global@gnu.org
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:bug-global-request@gnu.org?subject=help>
List-Post: <mailto:bug-global@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=subscribe>
List-Id: Bug reports for GNU GLOBAL <bug-global.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-global>,
	<mailto:bug-global-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/bug-global/>

> But I come to think that a smart parser can overcome this by detecting defini
tions of
> local vars and deciding to ignore this symbol as far as indexing of gloal ref
s is
> concerned.

You are right.

> > I think such option is needless.
> 
> At least they don't seem to be required for everyday use, but may prove usefu
l for
> accurate creation of the hypertext.

Right. When the facility is needed, we should think about it.
I think it is a issure of balance.

> Just meant it would be better not to duplicate too much existing code if I ev
er
> came to try to do better hypertexts :)

...? I will study English very hard. :)
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: shigio@tamacom.com, (Spare mail: shigio@par.odn.ne.jp)


