Subject: bug#2623: 23.0.91; File is under version-control; use C-x v v to check in/out

From: Dan Nicolaescu <[email-masked]>
Date: Mon, 11 Jul 2011 10:33:35 -0400

Lars Magne Ingebrigtsen <[email-masked]> writes:

> Leo <[email-masked]> writes:
>
>> This situation can be improved by a one line change:
>>
>> --- /tmp/emacs/share/emacs/23.0.60/lisp/files.el.gz
>> +++ /tmp/buffer-content-32645B0g
>> @@ -4429,7 +4429,7 @@
>>        (view-mode-enter))
>>       (t (setq buffer-read-only (not buffer-read-only))
>>          (force-mode-line-update)))
>> -    (if (vc-backend buffer-file-name)
>> +    (if (memq (vc-backend buffer-file-name) '(RCS SCCS))
>
> I think this change makes lots of sense, so I've installed it in Emacs
> 24.

It might be a good idea to used a named variable there instead of '(RCS SCCS)
so that other VC backends could add to it.