]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bytecomp.el warning a different way than the previous patch
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 3 Oct 2019 15:17:50 +0000 (17:17 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 3 Oct 2019 15:17:50 +0000 (17:17 +0200)
* 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.

lisp/emacs-lisp/bytecomp.el

index 1d0f07a9410ab07221bba26c399471f54da73a49..905d99a5971106ce35926bd6ace1350a88018844 100644 (file)
 (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))