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: 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.



reply via email to

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