Graham Bennett wrote:
>
> On Sat, Mar 23, 2002 at 08:39:38AM +0000, Vaclav Barta wrote:
> > I would be one of those designers... :-) I'm using Emacs to edit
> > the source code: isn't it unnatural to use some other GUI for
> > refactorings, which are just source code transformations? Why don't you
> > integrate the refactoring functionality into Emacs (like JDE)?
> that is what I am planning to do. I think the solution is as follows:
> For my tool to query emacs I will use the gnuclient interface. This is
> definitely feasible as I have written routines to get the current line,
> column and file from emacs via a socket.
Hmm, I believe it can be made to work, but I don't like the circular
dependency - if Emacs depends (for some functionality) on your tool,
then
Emacs should be the front end, your tool the back end and it doesn't
need
to know it's driven from Emacs at all... It would make testing easier,
allow plugging in new front and back ends independently - all the
standard
arguments apply...
> For emacs (ie JDE) to query my tool, e.g. to initiate a particular
> refactoring, I will probably use the jde-jeval functionality to call
> static methods on my code. I can therefore keep an instance of my tool
> in a static member somewhere and just call methods on that.
IMHO it would be much easier to just pass the needed parameters from
Lisp
to Java... Of course, it's your project...
> Any thoughts?
...but since you ask... :-)
Bye
Vasek