Commit 481a51b6 authored by Leo Liu's avatar Leo Liu Committed by Lars Magne Ingebrigtsen
Browse files

Only do the `C-x C-q' warning on VC backends where it makes sense.

Fixes: debbugs:2623
parent eea84fe5
2011-07-11 Leo <sdl.web@gmail.com> (tiny change)
* files.el (toggle-read-only): Only do the `C-x C-q' warning on VC
backends where it makes sense (bug#2623).
2011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* dired-x.el (dired-guess-default): Remove duplicate shell command
......
......@@ -4694,7 +4694,7 @@ and `view-read-only' is non-nil, enter view mode."
(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))
(message "%s" (substitute-command-keys
(concat "File is under version-control; "
"use \\[vc-next-action] to check in/out"))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment