bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Tony.RE: GNU Global Parsing Suffixless Files Patch


From: Cooper, Anthony
Subject: RE: Tony.RE: GNU Global Parsing Suffixless Files Patch
Date: Fri, 7 Oct 2016 20:05:02 +0100

SECURITY CLASSIFICATION: OFFICIAL 


> -----Original Message-----
> From: address@hidden [mailto:address@hidden On Behalf Of 
> Shigio YAMAGUCHI
> Sent: 06 October 2016 23:56
> To: Cooper, Anthony
> Cc: address@hidden
> Subject: Re: Tony.RE: GNU Global Parsing Suffixless Files Patch
> 
> > True, I was thinking of when it's integrated as a part of an 
> > editor/IDE and gets called directly, like emacs, on writing a file 
> > and browsing multiple projects with there own global databases. 
> > Again you can add something to the path at the start with your shell 
> > script... Anyway
> in reference to:
> 
> OK. How about adding a hook like this?
> 
> [gtags.conf]
> :gtags-hook=find ..... > cppfiles:

Yes that sounds a lot nicer. Also if one gave a relative path to the script 
then this could be taken from where the GPATH database files are found. Then 
that would mean you could have a config being used by a number of different 
projects and also would work when you do a global -u as that needs to find the 
databases from anywhere in the project and it might as well use that same 
location for the hook script. Thus a generic config along with specific hook 
scripts and databases per project.

In reference to:
        1 - Existing langmap style extension list e.g. `.c.h'.
        2 - File only glob pattern e.g. `([Mm]akefile)'.
        3 - A mixture of the above two e.g. `.c.h([Mm]akefile)(*.inc)'
        4  - A dumb path substring match (possibly with the caveat that it must 
start with ./ or / to distinguish it from the above?) e.g. '/include/'.
        5 - A bare name of a file containing a list of filenames  e.g. 
`cppfiles'?
What were you thinking of supporting in --force-language then?

By the way I'm going away on a source code analysis and comprehension workshop 
for maybe up to two weeks and so my access to my business email may well be 
limited, so please don't think I'm ignoring you (although you'll probably be 
glad of the peace and quiet! :-)).

Regards,

Tony.

****************************************************************************
Communications with GCHQ may be monitored and/or recorded 
for system efficiency and other lawful purposes. Any views or 
opinions expressed in this e-mail do not necessarily reflect GCHQ 
policy.  This email, and any attachments, is intended for the 
attention of the addressee(s) only. Its unauthorised use, 
disclosure, storage or copying is not permitted.  If you are not the
intended recipient, please notify address@hidden  

This information is exempt from disclosure under the Freedom of 
Information Act 2000 and may be subject to exemption under
other UK information legislation. Refer disclosure requests to 
GCHQ on 01242 221491 ext 30306 (non-secure) or email
address@hidden

****************************************************************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]