Subject: Re: bug#75993: Special mode-class for diff-mode

From: Stefan Monnier <[email-masked]>
Date: Thu, 06 Feb 2025 13:22:52 -0500

>> Hmm... when you `(setq diff-default-read-only nil)`, `w` is not bound to
>> `diff-kill-ring-save` but to `self-insert-command`, so I think we *do*
>> want `view-read-only` to apply in this case.
> `w` is bound to `diff-kill-ring-save` because of
> the read-only file and therefore read-only buffer.

Hmm... looks like you're right.

So why don't we make `diff-mode` inherit from `special-mode`?

        Stefan