GNU bug report logs -
#60338
[PATCH] Add option to present server changes as diffs
Previous Next
Reported by: Philip Kaludercic <philipk <at> posteo.net>
Date: Mon, 26 Dec 2022 13:43:02 UTC
Severity: normal
Tags: patch
Done: João Távora <joaotavora <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #50 received at 60338 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Philip Kaludercic <philipk <at> posteo.net>
>> Cc: 60338 <at> debbugs.gnu.org, joaotavora <at> gmail.com
>> Date: Mon, 12 Jun 2023 13:29:21 +0000
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> >> From: Philip Kaludercic <philipk <at> posteo.net>
>> >> Cc: 60338 <at> debbugs.gnu.org, joaotavora <at> gmail.com
>> >> Date: Mon, 12 Jun 2023 12:35:09 +0000
>> >>
>> >> Eli Zaretskii <eliz <at> gnu.org> writes:
>> >>
>> >> > Isn't there a better way of presenting the edits in human-readable
>> >> > form than apply them and then run Diff? What format is used by the
>> >> > server itself to send the edits?
>> >>
>> >> The server sends a JSON message. Here is an example from a little toy
>> >> project of mine in C, where I intentionally uncommented a #include
>> >> directive:
>> >
>> > And we cannot generate the Diff format from this?
>>
>> Certainly we /could/, but I don't think that would be worth the effort
>> to generate a proper diff manually.
>
> It doesn't necessarily have to be the full-fledged diffs, it could be
> something approximate. After all, this is for human consumption.
Not really, the point is that you can apply these diffs directly. Also,
I would not say that diffs are not for human consumption.
>> > What do we suggest to people who don't have Diff, though? Nothing?
>>
>> They still have two different options for
>> `eglot-confirm-server-initiated-edits', 'confirm (the default) and nil.
>> This is the current state.
>
> IOW, we offer them nothing for this feature.
In the sense of a preview? Yes, but I would still argue, that that
would be a different feature. I can take a look at that as well, but I
know of at least a few people who would be explicitly interested in this
kind of a user interface.
> Look, I cannot force you to do anything else, if you don't feel like
> it, but I don't like this solution, and think we should try harder. I
> urge you to try to find some way of presenting the edits in
> human-readable form that doesn't need running Diff.
I respect your perspective, so I don't want to insist on anything
against your or Joao's will.
> Thanks in advance.
This bug report was last modified 1 year and 317 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.