Commit 5d78d57d authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(easy-mmode-define-keymap): Autoload.

(easy-mmode-defmap): Remove the now useless autoload.
parent 57ce63c4
......@@ -283,6 +283,7 @@ in which `%s' turns it on."
(easy-mmode-set-keymap-parents m parents)
m))))))
;;;###autoload
(defun easy-mmode-define-keymap (bs &optional name m args)
"Return a keymap built from bindings BS.
BS must be a list of (KEY . BINDING) where
......@@ -322,11 +323,9 @@ ARGS is a list of additional arguments."
;;;###autoload
(defmacro easy-mmode-defmap (m bs doc &rest args)
`(progn
(autoload 'easy-mmode-define-keymap "easy-mmode")
(defconst ,m
(easy-mmode-define-keymap ,bs nil (if (boundp ',m) ,m) ,(cons 'list args))
,doc)))
`(defconst ,m
(easy-mmode-define-keymap ,bs nil (if (boundp ',m) ,m) ,(cons 'list args))
,doc))
;;;
......
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