This patch enhances fuel-refactor-extract-region (or sexp) in two ways: - Before asking for a new word, it scans the buffer for definitions that are equal to the words you're refactoring, offering the choice of using any of them instead of creating a new one.
- After performing the refactoring in the current word, it asks you whether you would like to perform the same refactoring in other words which contain the same code. Of course, 'same code' is to be understood modulo whitespace and the like. Lightly tested, bug reports, as always, welcome. BTW, this was quite easy to implement: chalk it up to Factor being concatenative! ---------------- The following changes since commit cbb91284c9b7dde71e2ecb45b38170cc42d1c3e4: Slava Pestov (1): Well-formed HTML for counter are available in the git repository at: http://git.hacks-galore.org/jao/factor.git emacs Jose A. Ortega Ruiz (1): FUEL: Better word extraction: detect existing words and extend refactoring. misc/fuel/fuel-refactor.el | 114 +++++++++++++++++++++++++++++++++++-------- 1 files changed, 92 insertions(+), 22 deletions(-) ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk