[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gtags-query-replace
From: |
Tomi Ollila |
Subject: |
gtags-query-replace |
Date: |
Sat, 02 Sep 2006 23:31:50 +0300 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux) |
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??
- gtags-query-replace,
Tomi Ollila <=