From: Lars Ingebrigtsen Date: Thu, 3 Oct 2019 15:17:50 +0000 (+0200) Subject: Fix bytecomp.el warning a different way than the previous patch X-Git-Tag: emacs-27.0.90~1308 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3ad9e5133e7c9895c41bb31b2209d2c1f8fe3239;p=emacs.git Fix bytecomp.el warning a different way than the previous patch * lisp/emacs-lisp/bytecomp.el (emacs-lisp-compilation-mode-map): No need to use set-keymap-parent here; `define-derived-mode' will do that automatically. --- diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 1d0f07a9410..905d99a5971 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -124,7 +124,7 @@ (require 'backquote) (require 'macroexp) (require 'cconv) -(require 'compile) +(eval-when-compile (require 'compile)) ;; Refrain from using cl-lib at run-time here, since it otherwise prevents ;; us from emitting warnings when compiling files which use cl-lib without ;; requiring it! (bug#30635) @@ -1047,7 +1047,6 @@ message buffer `default-directory'." (defvar emacs-lisp-compilation-mode-map (let ((map (make-sparse-keymap))) - (set-keymap-parent map compilation-minor-mode-map) (define-key map "g" 'emacs-lisp-compilation-recompile) map))