[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:38:08 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
> Can't that be solved using something like,
>
> (goto-char (point-min))
> (while (not (eobp))
> (diff-apply-hunk))
It's basically what Philip proposed in bug#60338.
> Or some such and have it bound to something sensible, maybe collecting
> the files it touched for a later save.
Good idea, then with a prefix argument e.g. 'C-u C-c C-A' could save
the buffers after applying the entire patch.
> A possible solution would be to support a region by 'C-c C-a'.
>
> A region might not be a valid thing to apply -- it is better to work
> with hunks.
It's possible to detect hunk boundaries that start/end inside the selected
region.
- 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, Philip Kaludercic, 2023/09/04
Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/07