bug-global
[Top][All Lists]
Advanced

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

Re: gtags-query-replace


From: Shigio YAMAGUCHI
Subject: Re: gtags-query-replace
Date: Wed, 06 Sep 2006 17:08:41 +0900

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 <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

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