]> git.eshelyaron.com Git - emacs.git/commitdiff
Only do the `C-x C-q' warning on VC backends where it makes sense.
authorLeo Liu <sdl.web@gmail.com>
Mon, 11 Jul 2011 13:56:49 +0000 (15:56 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 11 Jul 2011 13:56:49 +0000 (15:56 +0200)
Fixes: debbugs:2623
lisp/ChangeLog
lisp/files.el

index a767eab06f48d4b45bca528173a67badf00b8570..26a5131feaaa7b3392368fa6fdbd7cd9a43f9062 100644 (file)
@@ -1,3 +1,8 @@
+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
index c9f85ff6a1ac486494170a1be8047c1707748272..1071adb6967310bf3f9ed81dbcd124579a69cfe1 100644 (file)
@@ -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"))))))