From: Sven R. <rei...@ma...> - 2002-12-14 17:39:50
|
For emacs, I came up with the following solution: - Create a text-based application which understands an easy to parse set of commands, and which allows to interactively refactor source files on disk. - Create a mode for emacs which communicates with that application. Both parts shouldn't be too complicated to implement. The application (let's call it "refactor") would still be platform independent, and hence perhaps generally useful. Since it operates directly on the files it will have to implement its own undo mechanism. I'll think about the interface for refactor, and I'll put something on the Wiki. Basically, a run would look as follows: > addAll src/rfta added 25 files > apply RenameTemp ToolsBox.cpp 245 15 newVariableName replaced 14 occurrences > saveAll saved 1 file(s) > quit where the variable occurs in line 245, column 15. Sven. -- Sven Reichard Dept. of Math. Sci. University of Delaware rei...@ma... |