Subject: bug#65854: Multi-file replacement diff

From: Eshel Yaron <[email-masked]>
Date: Fri, 15 Sep 2023 09:02:55 +0200

Juri Linkov <[email-masked]> writes:

>
> Here is a new customizable option 'multi-file-diff-unsaved'
> that defines what to do with unsaved changes.  When it is
> 'use-buffer' then it handles the case Eshel demonstrated
> where changes are applied over unsaved buffers.  But when
> the value is 'save-buffers', then 'save-some-buffers' is
> called before producing the diff.
>

Nice!

One thought about the default choice:

> +(defcustom multi-file-diff-unsaved 'use-file

I wonder if it wouldn't be better to use save-buffers by default, ISTM
that it's the "least surprising" choice.

Cheers,

Eshel