Philip Kaludercic writes: > Tags: patch > > > This command solves a long-standing annoyance I have had when working > with diffs. To my knowledge there is no existing way to achieve this > (rectangular selection might be possible, but that behaves differently > when the text is yanked). The binding "w" seems intuitive when > contrasted with "M-w", but might be confused with "W" (widen). Not sure > if that is an issue or not. > > In GNU Emacs 30.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version > 3.24.37, cairo version 1.16.0) of 2023-08-18 built on quetzal > Repository revision: 2f74a459d2a82578fd9a92e9e2facdca90dad974 > Repository branch: feature/a-package-for-elpa > System Description: Debian GNU/Linux 12 (bookworm) > > Configured using: > 'configure --with-pgtk --with-native-compilation --with-imagemagick > --with-tree-sitter' It seems I prepared to patch too hastily, and forgot to add a docstring. Here is the updated version, with a docstring: