From: Lars Ingebrigtsen Date: Sun, 7 Nov 2021 23:26:32 +0000 (+0100) Subject: Suppress a compilation warning about vc-switch-backend X-Git-Tag: emacs-29.0.90~3671^2~90 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=52379a44cbfd7372a0ffd38ba5775461c92dbfb3;p=emacs.git Suppress a compilation warning about vc-switch-backend * lisp/vc/vc-hooks.el (vc-prefix-map): Suppress a warning about an obsolete command. --- diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el index b7760e3bba5..cd5b11d840b 100644 --- a/lisp/vc/vc-hooks.el +++ b/lisp/vc/vc-hooks.el @@ -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)