[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding refactoring capabilities to Emacs
From: |
Juri Linkov |
Subject: |
Re: Adding refactoring capabilities to Emacs |
Date: |
Tue, 05 Sep 2023 09:43:44 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> A possible solution would be to support a region by 'C-c C-a'.
>> Then it will be possible to activate the region on the whole buffer
>> or on a few hunks, and type a single 'C-c C-a'.
>
> Another problem is trying to do an atomic revert if a large diff, across
> multiple files, fails to apply somewhere in the middle.
>
>> Another problem that the changes are not saved automatically
>> on multiple files. This limitation forces to use tricks like
>> 'M-| git apply RET' after selecting the whole diff buffer with 'C-x h'
>> or a region of the diff buffer. A "poor man's auto-save".
>
> This approach might help with the above, though.
Indeed, and an atomic revert in case of no errors (just when the
user changes the mind) is to do 'C-c C-r' ('diff-reverse-direction'),
and then 'M-| git apply RET' again.
But the drawback of this approach is that visited files will be out of sync
that requires reverting with losing their content.
- Re: Adding refactoring capabilities to Emacs, (continued)
Re: Adding refactoring capabilities to Emacs, Juri Linkov, 2023/09/04
Re: Adding refactoring capabilities to Emacs, Dmitry Gutov, 2023/09/04
- Re: Adding refactoring capabilities to Emacs,
Juri Linkov <=
Re: Adding refactoring capabilities to Emacs, Philip Kaludercic, 2023/09/04
Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, Stefan Monnier, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, Stefan Monnier, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, Stefan Monnier, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/07
- Re: Adding refactoring capabilities to Emacs, Stefan Monnier, 2023/09/07
Re: Adding refactoring capabilities to Emacs, Lynn Winebarger, 2023/09/07