[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>
- Re: Adding refactoring capabilities to Emacs, (continued)
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/08
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/08
- Re: Adding refactoring capabilities to Emacs, Stefan Monnier, 2023/09/08
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/08
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/08
- Re: Adding refactoring capabilities to Emacs, Dmitry Gutov, 2023/09/08
- Message not available
- Message not available
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/08
Re: Adding refactoring capabilities to Emacs, Felician Nemeth, 2023/09/07
Re: Adding refactoring capabilities to Emacs, Dmitry Gutov, 2023/09/07
Re: Adding refactoring capabilities to Emacs, Dmitry Gutov, 2023/09/07
Re: Adding refactoring capabilities to Emacs, Eshel Yaron, 2023/09/08