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: Ihor Radchenko
Subject: Re: Adding refactoring capabilities to Emacs
Date: Thu, 07 Sep 2023 19:28:31 +0000

Ihor Radchenko <yantar92@posteo.net> writes:

>> How would a user undo such an operation in case of a multi-file edit?
>> Does the undo system support this?

Actually, it might be possible:

In `buffer-undo-list', one entry type is

    An entry (apply FUN-NAME . ARGS) means undo the change with
    (apply FUN-NAME ARGS).
    
    An entry (apply DELTA BEG END FUN-NAME . ARGS) supports selective undo
    in the active region.  BEG and END is the range affected by this entry
    and DELTA is the number of characters added or deleted in that range by
    this change.

This can be used to do anything for undo, including editing other files.

> No, but it is still possible. We do multi-file undo in Org agenda via
> `org-with-remote-undo'.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

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