Commit 2caa0390 authored by Jonas Bernoulli's avatar Jonas Bernoulli

Require magit-submodule when loading magit

The keymap for the `module' section type is defined in
`magit-submodule' and used by a section inserter in `magit'.  Due to
how `magit-insert-section' uses section keymaps we cannot rely on the
variable being autoloaded - calling `boundp' does not trigger the
library that defines the autoloaded variable to be loaded.

Fixes #3618.
parent 00c501fe
......@@ -602,8 +602,8 @@ For X11 something like ~/.xinitrc should work.\n"
(require 'magit-stash)
(require 'magit-blame)
(require 'magit-obsolete)
(require 'magit-submodule)
(unless (load "magit-autoloads" t t)
(require 'magit-submodule)
(require 'magit-subtree)
(require 'magit-ediff)
(require 'magit-extras)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment