• Diffing Parts Of Files

    From Lawrence D'Oliveiro@21:1/5 to All on Sat May 24 07:12:19 2025
    Every now and then I’ve felt the need to do a diff of parts of files,
    rather than entire files. So I came up with the code in diffbuff.el in
    this repo <https://gitlab.com/ldo/emacs-prefs>. Usage is simple:

    * Select the first region to be diffed. Press super-D 1 to copy this
    to the diff buffer.
    * Select the second region (in the same or a different buffer) to be
    diffed. Press super-D 2 to copy this to the diff buffer.
    * Now press super-D d to do the diff, and be taken to the diff buffer
    to see the result, highlighted for convenience.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Axel Reichert@21:1/5 to Lawrence D'Oliveiro on Sat May 24 09:18:18 2025
    Lawrence D'Oliveiro <ldo@nz.invalid> writes:

    Every now and then I’ve felt the need to do a diff of parts of files,

    The commands

    ediff-regions-linewise
    ediff-regions-wordwise

    exist for ages ...

    Regards,

    Axel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Axel Reichert@21:1/5 to Lawrence D'Oliveiro on Sat May 24 09:16:57 2025
    Lawrence D'Oliveiro <ldo@nz.invalid> writes:

    Every now and then I’ve felt the need to do a diff of parts of files,

    The commands

    ediff-region-linewise
    ediff-region-wordwise

    exist for ages ...

    Regards,

    Axel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Axel Reichert on Sat May 24 23:28:11 2025
    On Sat, 24 May 2025 09:18:18 +0200, Axel Reichert wrote:

    ediff-regions-linewise

    Wants you to type in buffer names, rather than just being able to select
    the text.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)