abingham / traad

An JSON+HTTP server for the rope Python refactoring library
MIT License
107 stars 20 forks source link

Consider how to properly revert buffers after changes #66

Closed abingham closed 6 years ago

abingham commented 10 years ago

It would be nice to have a way to automatically revert buffers which are changed by various refactorings. Since we do most work asynchronously, this means we'll need to poll the server to check task states. Successful refactorings should include a "changed_resources" key, so we can query this and - for successful refactorings - revert the changed buffers.

abingham commented 10 years ago

We can probably create a central "poll for these task-ids" task in traad.el. This will periodically check the task states for the specified tasks and perform some function when they do complete. This may necessitate a means to query multiple states at a time.

PythonNut commented 9 years ago

Another way, which would be 24.4 specific is to watch certain files with filenotify.

Or you can just enable auto-revert-mode.