Emacs lisp for copying diff hunks
When I’m looking at a diff in Emacs’s diff-mode, I usually use native functions like diff-apply-hunk to apply/revert or otherwise operate on hunks. Occasionally, though, I just want to kill (copy) part of the diff so I can do something else with it. When I do, I end up with leading – or + or […]