Hi,
> would it be too "hacky" to use tags-query-replace to do gtags-query-replace
> 
> tags-query-replace is defined as
> 
> (defun tags-query-replace (from to &optional delimited file-list-form)
> 
> ..xemacs one, emacs has also start end or something...
> 
> the file-list-form is a list of filenames to check through. 
> Command "global -g ." should show all files gtags knows (is there any other
> way)...
> 
> 
> So, probably something like the following could be done:
> 
> (require 'etags)
> 
> (defun gtags-query-replace (from to &optional delimited file-list-form)
>    (interactive
>      "sGtags query replace (regexp): \nsGtags query replace %s by: \nP")
>    (if (not file-list-form)
>     (setq file-list-form ....)
>    (tags-query-replace from to delimited file-list-form)))
> 
> 
> What do you think? I could try to do real implementation if idea
> sounds good enough?

I'm hesitant to your idea because depending on the API of outer project
has the problem in the maintenance of gtags.el.

You might do it in your .emacs. You can get the file list by "global -P[o]".
--
Shigio YAMAGUCHI <[EMAIL PROTECTED]> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to