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?


Tomi


PS: this could make faster to let global choose files that matches
    given regexp but there are 2 problems: 1) are re-formats compatible
    and 2) after running gtags the files may have been edited to to match
    given regexp which were not there when gtags was run.
    (gtags-fast-query-replace or something could be implemented for this !!11??









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

Reply via email to