emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding refactoring capabilities to Emacs


From: Dmitry Gutov
Subject: Re: Adding refactoring capabilities to Emacs
Date: Wed, 30 Aug 2023 22:59:55 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 30/08/2023 21:46, Stefan Kangas wrote:
Dmitry Gutov<dmitry@gutov.dev>  writes:

Similar to what we ended up doing with checkin-patch in VC -- powerful,
but no very obvious to a non-pro user in how it can be operated. It is
surely a good addition to Eglot, but the refactoring interface I was
thinking of would have been more graphical (very vaguely in the style of
Xref), looking a little closer to the VS Code screenshot I posted.
Do we need to choose between them, or could we support both?

IOW, could we have a nice clickable display that also comes with the
fast commands and well-thought-out key bindings?

Naturally, we could have a customization point that supports several displays (like xref-show-xrefs-function), but in this case as well any new display would have to reimplement almost all functionality (I guess that's unavoidable), and the format of the input data (CHANGES) need to be usable for such different displays.

I can roughly understand how to produce a diff from a list ((FILE START-POS END-POS NEW-TEXT) ...), but it seems more difficult to do the reverse. Though also possible, I suppose.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]