]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix define-minor-mode :keymap obsoletion warning
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 2 Sep 2022 12:58:30 +0000 (14:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 2 Sep 2022 12:58:30 +0000 (14:58 +0200)
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix some
warning.

lisp/emacs-lisp/easy-mmode.el

index a1398bd12e7637703ba479f01732d6355bc69049..7d54a84687bfc3770af2c74047a7f5382977cd5f 100644 (file)
@@ -419,7 +419,10 @@ No problems result if this variable is not bound.
               (cond ((keymapp m) m)
                      ;; FIXME: `easy-mmode-define-keymap' is obsolete,
                      ;; so this form should also be obsolete somehow.
-                    ((listp m) (easy-mmode-define-keymap m))
+                    ((listp m)
+                      (with-suppressed-warnings ((obsolete
+                                                  easy-mmode-define-keymap))
+                        (easy-mmode-define-keymap m)))
                     (t (error "Invalid keymap %S" m))))
             ,(format "Keymap for `%s'." mode-name)))