|
View:
New views
17 Messages
—
Rating Filter:
Alert me
|
|
|
global -u : update tagsI am trying to use glbal with emacs and to tage .el,.js and .php. I have three queries and one suggestion. Q1) Why does global -u ignore gtags.files? i.e find . -iname "*.el" > gtags.files gtags -f gtags.files *fine* but .. then in an emacs save hook I call "global -u" and it takes about 30 seconds as it tags ALL files under my cwd. Why is "update" not respecting the files already tagged? Q2) can one only *include* certain wildcard patters via the .globalrc? (The skip option needs documenting with working examples too : but a working "only include" is far more useful - I think for sure there is an option but I dont see it.) Q3) Global claims to support php, but it wont locate variable declarations. Is this for a reason or a bug? Suggestion: gtags-find-tag should default to (setq tagname (region-or-word-at-point)) as tags can and do include "-" for examples. I am new to gtags/global so sorry if any of this is blindingly obvious. (as an emacs user I would also like to be able to specify directory specify global config files : possible?) _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tagsHell, and thank you for your time. "Shigio YAMAGUCHI" <shigio@...> writes: > Hello, >> Q1) Why does global -u ignore gtags.files? i.e ^^^^^ This is the most important one. Why does global -u not do an incremental tags? I gave an example in my first post. ,---- | Q1) Why does global -u ignore gtags.files? i.e | | find . -iname "*.el" > gtags.files | gtags -f gtags.files | | *fine* | | but .. | | then in an emacs save hook I call "global -u" and it takes about 30 | seconds as it tags ALL files under my cwd. Why is "update" not | respecting the files already tagged? `---- Is this understandable? The main problem is that "global -u" does NOT do an incremental update for files already tagged using gtags -f gatgs-files. It tags ALL files in that directory. The problem is, for example, that I keep certain gnus files in my .emacs.d. I generate a small GTAGS using "gtags -f gtags.files" BUT when I save a .el file the onsave for emacs-lisp calls "global -u" which tags ALL files in .emacs.d. Is this clearer? > ... >> Q2) can one only *include* certain wildcard patters via the .globalrc? > ... > > Sorry but I cannot understand what you are saying. > Would you please explain it for example? How do I tell global only to tag *.el and *.org for example from the config file? > >> Q3) Global claims to support php, but it wont locate variable >> declarations. Is this for a reason or a bug? > > The current parser doesn't consider declarations of variables to be > a definition. Please try the -s option of global(1). The emacs extensions doesnt allow selection of a $phpvariable. Have you tried it? I am talking from within emacs. > >> Suggestion: gtags-find-tag should default to > > Would you please send the suggestion to bug-global@...? > The most important is part 1) _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags"Shigio YAMAGUCHI" <shigio@...> writes:
>> The main problem is that "global -u" does NOT do an incremental update >> for files already tagged using gtags -f gatgs-files. It tags ALL files >> in that directory. >> >> The problem is, for example, that I keep certain gnus files in my >> .emacs.d. I generate a small GTAGS using "gtags -f gtags.files" BUT when >> I save a .el file the onsave for emacs-lisp calls "global -u" which tags >> ALL files in .emacs.d. Is this clearer? > > Would you please confirm the file name is 'gtags.files'? > If it is correct, would you please do it without emacs? > If it brings the same problem, it may be a bug. It does. Just do what I did on the command line. Once more : gtags -f gtags.files ls -l G* global -i ls -l G* HUGE! _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tagsHello,
> Q1) Why does global -u ignore gtags.files? i.e ... > Q2) can one only *include* certain wildcard patters via the .globalrc? ... Sorry but I cannot understand what you are saying. Would you please explain it for example? > Q3) Global claims to support php, but it wont locate variable > declarations. Is this for a reason or a bug? The current parser doesn't consider declarations of variables to be a definition. Please try the -s option of global(1). > Suggestion: gtags-find-tag should default to Would you please send the suggestion to bug-global@...? The purpose of the mailing lists are written in: http://www.gnu.org/software/global/maillist.html Thank you for your cooperation. -- Shigio YAMAGUCHI <shigio@...> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags"Shigio YAMAGUCHI" <shigio@...> writes:
>> > If it brings the same problem, it may be a bug. >> >> It does. >> >> Just do what I did on the command line. >> >> Once more : >> >> gtags -f gtags.files >> >> ls -l G* >> >> global -i >> >> ls -l G* >> >> HUGE! > > I don't understand what has occurred well. Did you try it? Go to a directory with MANY files in. Create a gtags.files with only a few file names in. Then gtags -f gtags.files ls -l G* *look at the tags files size* Now, global -u NOW look at the tags file sizes > If you think it is a bug, would you please send a bug report > to bug-global@...? > Please see: http://www.gnu.org/software/global/maillist.html. I dont know if its a bug. I dont understand the documentation. I am asking how to configure global to ONLY update for the files already tagged or, and better, how can I specify in the .globalrc only to tag REAL source files? Currently it is tagging every file in the directrory. _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags"Shigio YAMAGUCHI" <shigio@...> writes:
>> Did you try it? >> >> Go to a directory with MANY files in. Create a gtags.files with only a >> few file names in. Then >> >> gtags -f gtags.files >> >> ls -l G* >> >> *look at the tags files size* >> >> Now, >> >> global -u >> >> NOW look at the tags file sizes > > It doesn't reproduce it here. So it does use the gtags.files? Or? And once again you have snipped my Q. This makes it very difficult as I dont know if you have a different config. Does this Q make sense to you : ,---- | I dont know if its a bug. I dont understand the documentation. I am | asking how to configure global to ONLY update for the files already | tagged or, and better, how can I specify in the .globalrc only to tag REAL source | files? Currently it is tagging every file in the directrory. `---- thank you for your time, r. _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags> The main problem is that "global -u" does NOT do an incremental update
> for files already tagged using gtags -f gatgs-files. It tags ALL files > in that directory. > > The problem is, for example, that I keep certain gnus files in my > .emacs.d. I generate a small GTAGS using "gtags -f gtags.files" BUT when > I save a .el file the onsave for emacs-lisp calls "global -u" which tags > ALL files in .emacs.d. Is this clearer? Would you please confirm the file name is 'gtags.files'? If it is correct, would you please do it without emacs? If it brings the same problem, it may be a bug. > > ... > >> Q2) can one only *include* certain wildcard patters via the .globalrc? > > ... > > > > Sorry but I cannot understand what you are saying. > > Would you please explain it for example? > > How do I tell global only to tag *.el and *.org for example from the config file? You can do it using the langmap. Please see the online manual. The langmap has the same format as the one of Exuberant Ctags. -- Shigio YAMAGUCHI <shigio@...> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags> > If it brings the same problem, it may be a bug.
> > It does. > > Just do what I did on the command line. > > Once more : > > gtags -f gtags.files > > ls -l G* > > global -i > > ls -l G* > > HUGE! I don't understand what has occurred well. If you think it is a bug, would you please send a bug report to bug-global@...? Please see: http://www.gnu.org/software/global/maillist.html. Thank you in advance. -- Shigio YAMAGUCHI <shigio@...> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags> Did you try it?
> > Go to a directory with MANY files in. Create a gtags.files with only a > few file names in. Then > > gtags -f gtags.files > > ls -l G* > > *look at the tags files size* > > Now, > > global -u > > NOW look at the tags file sizes It doesn't reproduce it here. -- Shigio YAMAGUCHI <shigio@...> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tagsRichard Riley <rileyrg@...> writes:
> "Shigio YAMAGUCHI" <shigio@...> writes: > >>> Did you try it? >>> >>> Go to a directory with MANY files in. Create a gtags.files with only a >>> few file names in. Then >>> >>> gtags -f gtags.files >>> >>> ls -l G* >>> >>> *look at the tags files size* >>> >>> Now, >>> >>> global -u >>> >>> NOW look at the tags file sizes >> >> It doesn't reproduce it here. > > So it does use the gtags.files? Or? > > And once again you have snipped my Q. This makes it very difficult as I > dont know if you have a different config. > > Does this Q make sense to you : > ,---- > | I dont know if its a bug. I dont understand the documentation. I am > | asking how to configure global to ONLY update for the files already > | tagged or, and better, how can I specify in the .globalrc only to tag REAL source > | files? Currently it is tagging every file in the directrory. > `---- > > thank you for your time, > I try to rephrase this. How do I configure a project directory so that gtags only tags certain files (currently I use gtags -f gtags.files) and then "global -u" ONLY updates those tagged files. Currently "global -u" currently tags ALL files. You can easily reproduce this on the command line assuming no other global config files. I am currently using debian squeeze. _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags"Shigio YAMAGUCHI" <shigio@...> writes:
>> I try to rephrase this. >> >> How do I configure a project directory so that gtags only tags certain >> files (currently I use gtags -f gtags.files) and then "global -u" ONLY >> updates those tagged files. Currently "global -u" currently tags ALL >> files. You can easily reproduce this on the command line assuming no >> other global config files. >> >> I am currently using debian squeeze. > > Debian? > Would you please use the latest version of GLOBAL? > You might be using an old verion of GLOBAL that doesn't recognize > 'gtags.files'. Could you possibly explain to me how I configure global/gtags to only tag certain file types using .globalrc. Otherwise if I use gtags.files then *new* files wont be tagged correctly. ,---- | >> How do I configure a project directory so that gtags only tags certain | >> files (currently I use gtags -f gtags.files) and then "global -u" ONLY | >> updates those tagged files. `---- thanks r. _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags> I try to rephrase this.
> > How do I configure a project directory so that gtags only tags certain > files (currently I use gtags -f gtags.files) and then "global -u" ONLY > updates those tagged files. Currently "global -u" currently tags ALL > files. You can easily reproduce this on the command line assuming no > other global config files. > > I am currently using debian squeeze. Debian? Would you please use the latest version of GLOBAL? You might be using an old verion of GLOBAL that doesn't recognize 'gtags.files'. -- Shigio YAMAGUCHI <shigio@...> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tagsRichard Riley <rileyrg@...> writes:
> "Shigio YAMAGUCHI" <shigio@...> writes: > >>> I try to rephrase this. >>> >>> How do I configure a project directory so that gtags only tags certain >>> files (currently I use gtags -f gtags.files) and then "global -u" ONLY >>> updates those tagged files. Currently "global -u" currently tags ALL >>> files. You can easily reproduce this on the command line assuming no >>> other global config files. >>> >>> I am currently using debian squeeze. >> >> Debian? >> Would you please use the latest version of GLOBAL? >> You might be using an old verion of GLOBAL that doesn't recognize >> 'gtags.files'. > > Could you possibly explain to me how I configure global/gtags to only > tag certain file types using .globalrc. Otherwise if I use gtags.files > then *new* files wont be tagged correctly. > > ,---- > | >> How do I configure a project directory so that gtags only tags certain > | >> files (currently I use gtags -f gtags.files) and then "global -u" ONLY > | >> updates those tagged files. > `---- > or possibly point me to the place in the manual which explains which *types* of files get tagged? I really dont want to install a new global if not necessary and feel sure there must be a simple way to specify in the .globalrc which file types are tagged. I thought maybe "suffixes" but that's been deprecated apparently : I'm surely missing something obvious. _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags> or possibly point me to the place in the manual which explains
> which *types* of files get tagged? I really dont want to install a new > global if not necessary and feel sure there must be a simple way to > specify in the .globalrc which file types are tagged. I thought maybe > "suffixes" but that's been deprecated apparently : I'm surely missing > something obvious. Which version of GLOBAL are you using? The following command will show it. global --version -- Shigio YAMAGUCHI <shigio@...> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags"Shigio YAMAGUCHI" <shigio@...> writes:
>> or possibly point me to the place in the manual which explains >> which *types* of files get tagged? I really dont want to install a new >> global if not necessary and feel sure there must be a simple way to >> specify in the .globalrc which file types are tagged. I thought maybe >> "suffixes" but that's been deprecated apparently : I'm surely missing >> something obvious. > > Which version of GLOBAL are you using? > The following command will show it. > > global --version > -- > Shigio YAMAGUCHI <shigio@...> > PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 The one in debian squeeze (stable). 5.7.1 but as I say, all I want to do is configure the type of files tagged by global - something I assume is possible even on an older global? If its not possible to tell global to only tag certain file types, then of course I can look into moving to a new version but would prefer not to if avoidable - but I suspect it is possible and I am missing something in the manual since it seems such a basic configuration requirement for any tagging system. Many thanks for your support r. _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags> The one in debian squeeze (stable).
> > 5.7.1 It is a version three years ago. It cannot understand 'gtags.files'. It seems that you are reading the manual of a different version. > but as I say, all I want to do is configure the type of files tagged by > global - something I assume is possible even on an older global? > If its not possible to tell global to only tag certain file types, then > of course I can look into moving to a new version but would prefer not > to if avoidable - but I suspect it is possible and I am missing > something in the manual since it seems such a basic configuration > requirement for any tagging system. I have already answer to it. -- Shigio YAMAGUCHI <shigio@...> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
|
|
Re: global -u : update tags"Shigio YAMAGUCHI" <shigio@...> writes:
>> The one in debian squeeze (stable). >> >> 5.7.1 > > It is a version three years ago. It cannot understand 'gtags.files'. > It seems that you are reading the manual of a different version. > >> but as I say, all I want to do is configure the type of files tagged by >> global - something I assume is possible even on an older global? >> If its not possible to tell global to only tag certain file types, then >> of course I can look into moving to a new version but would prefer not >> to if avoidable - but I suspect it is possible and I am missing >> something in the manual since it seems such a basic configuration >> requirement for any tagging system. > > I have already answer to it. If I could just bump this : I cant find any answer than "langmap" and that doesnt seem to work for me. I am using the default langmap and that says :langmap=c\:.c.h,yacc\:.y,asm\:.s.S,java\:.java,cpp\:.c++.cc.cpp.cxx.hxx.hpp.C.H,php\:.php.php3.phtml: so why when I save an .el file in my .emacs.d why is global -u taking 3 minutes? This is with the debian stable global and the latest compiled from source. I dont want to use gtags.files as the new files wont be tagged. It seems a very common requirement to only update tags using files of a certain type - in this case .el files- and to my shame I cant seem to make it work. Surely an example is possible? _______________________________________________ Help-global mailing list Help-global@... https://lists.gnu.org/mailman/listinfo/help-global |
| Free embeddable forum powered by Nabble | Forum Help |