]> git.eshelyaron.com Git - emacs.git/commitdiff
Suppress a compilation warning about vc-switch-backend
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 23:26:32 +0000 (00:26 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 23:26:32 +0000 (00:26 +0100)
* lisp/vc/vc-hooks.el (vc-prefix-map): Suppress a warning about an
obsolete command.

lisp/vc/vc-hooks.el

index b7760e3bba52f262468c87edf48e32dffc2dc12f..cd5b11d840b51b7241e44957b00801516e7fef08 100644 (file)
@@ -864,7 +864,8 @@ In the latter case, VC mode is deactivated for this buffer."
 (defvar vc-prefix-map
   (let ((map (make-sparse-keymap)))
     (define-key map "a" #'vc-update-change-log)
-    (define-key map "b" #'vc-switch-backend)
+    (with-suppressed-warnings ((obsolete vc-switch-backend))
+      (define-key map "b" #'vc-switch-backend))
     (define-key map "d" #'vc-dir)
     (define-key map "g" #'vc-annotate)
     (define-key map "G" #'vc-ignore)