The refactorings work fine, but they're all capitalized (printing symbols) and on one line. You then have to go through and reindent.
Maybe it can be done in a whitespace- (and capitalization-) preserving way. It would be nice, also, to make it completely in Emacs. But as I said before, I've never hacked Emacs. I worry that textual refactorings might have lots of corner cases.
One of the benefits of doing it in the Lisp image is that you get package management for free.
But if you did do it textually, ie, as in structured text editing, you could preserve whitespace and capitalization. Your matcher would operate not on s-expressions, but on Lisp code (in text format). Parentheses would be matched, when needed. I'm sure it's possible to do a regular-expression-like language that can recognize s-expr syntax. I'm just not aware of how to do it right off the bat.
Indentation
I'm having indentation issues now, too.
The refactorings work fine, but they're all capitalized (printing symbols) and on one line. You then have to go through and reindent.
Maybe it can be done in a whitespace- (and capitalization-) preserving way. It would be nice, also, to make it completely in Emacs. But as I said before, I've never hacked Emacs. I worry that textual refactorings might have lots of corner cases.
One of the benefits of doing it in the Lisp image is that you get package management for free.
But if you did do it textually, ie, as in structured text editing, you could preserve whitespace and capitalization. Your matcher would operate not on s-expressions, but on Lisp code (in text format). Parentheses would be matched, when needed. I'm sure it's possible to do a regular-expression-like language that can recognize s-expr syntax. I'm just not aware of how to do it right off the bat.