GNU bug report logs -
#65854
Multi-file replacement diff
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Sun, 10 Sep 2023 17:24:01 UTC
Severity: wishlist
Tags: patch
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #43 received at 65854 <at> debbugs.gnu.org (full text, mbox):
> From: Juri Linkov <juri <at> linkov.net>
> Cc: me <at> eshelyaron.com, 65854 <at> debbugs.gnu.org
> Date: Fri, 22 Sep 2023 09:55:40 +0300
>
> +(defcustom multi-file-diff-unsaved 'save-buffers
> + "What to do with unsaved edits when showing multi-file replacements as diffs.
> +If the value is `save-buffers', save unsaved buffers before creating diff.
> +If the value is `use-file', use text from the file even when the visiting
> +file buffer is modified.
> +If the value is `use-modified-buffer', use text from the file-visiting
> +modified buffer to be able to use unsaved changes. However, when the file
> +is not visited in a buffer, or the buffer is not modified, still read
> +contents from the file."
Please use consistent wording to describe the same entities. If you
use "file-visiting buffer", use it everywhere, when you sometimes use
that and sometimes "visiting file buffer", you are already half way to
confusing the reader.
Also, this part:
> + However, when the file
> +is not visited in a buffer, or the buffer is not modified, still read
> +contents from the file."
Seems to describe an implementation detail, and I don't think it
should be there. E.g., what if the file visited by the buffer no
longer exists?
Thanks.
This bug report was last modified 1 year and 236 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.