emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 52379a4: Suppress a compilation warning about vc-switch-backend


From: Lars Ingebrigtsen
Subject: master 52379a4: Suppress a compilation warning about vc-switch-backend
Date: Sun, 7 Nov 2021 18:26:41 -0500 (EST)

branch: master
commit 52379a44cbfd7372a0ffd38ba5775461c92dbfb3
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Suppress a compilation warning about vc-switch-backend
    
    * lisp/vc/vc-hooks.el (vc-prefix-map): Suppress a warning about an
    obsolete command.
---
 lisp/vc/vc-hooks.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index b7760e3..cd5b11d 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]