Add missing autoload cookie, and make lack of a normalizer an error
Fixes https://github.com/jwiegley/use-package/issues/566
This commit is contained in:
@@ -66,6 +66,7 @@ deferred until the prefix key sequence is pressed."
|
||||
(format "package.el %s failed to define keymap %s"
|
||||
package keymap-symbol)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun use-package-normalize-binder (name keyword args)
|
||||
(let ((arg args)
|
||||
args*)
|
||||
|
||||
@@ -476,12 +476,8 @@ extending any keys already present."
|
||||
(tail (cdr xs))
|
||||
(normalizer (intern (concat "use-package-normalize/"
|
||||
(symbol-name keyword))))
|
||||
(arg (cond ((functionp normalizer)
|
||||
(funcall normalizer name keyword args))
|
||||
((= (length args) 1)
|
||||
(car args))
|
||||
(t
|
||||
args))))
|
||||
(arg (and (functionp normalizer)
|
||||
(funcall normalizer name keyword args))))
|
||||
(if (memq keyword use-package-keywords)
|
||||
(progn
|
||||
(setq plist (use-package-normalize-plist
|
||||
|
||||
Reference in New Issue
Block a user