Sujet : Diffing Parts Of Files
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.emacsDate : 24. May 2025, 08:12:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <100rrgj$j2uv$1@dont-email.me>
User-Agent : Pan/0.162 (Pokrosvk)
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.